Well, you have my code for review [hint hint] so help yourself, but yes I must try to learn github (I'm an SVN

). These are the two files in question I expect. It works like this, but not with a non empty string for auth.
Code: Select all
namespace brokencrust\deletemyaccount\ucp;
class delete_my_account_info
{
function module()
{
return array(
'filename' => '\brokencrust\deletemyaccount\ucp\delete_my_account_module',
'title' => 'UCP_DELETE_MY_ACCOUNT',
'modes' => array(
'delete_my_account' => array('title' => 'UCP_DELETE_MY_ACCOUNT', 'auth' => '', 'cat' => array('UCP_DELETE_MY_ACCOUNT')),
),
);
}
}
Code: Select all
namespace brokencrust\deletemyaccount\migrations\v10x;
/**
* Migration stage 2: Initial module
*/
class m2_initial_module extends \phpbb\db\migration\migration
{
/**
* Add or update data in the database
*
* @return array Array of table data
* @access public
*/
public function update_data()
{
return array(
array('module.add', array('ucp', '', 'UCP_DELETE_MY_ACCOUNT')),
array('module.add', array(
'ucp', 'UCP_DELETE_MY_ACCOUNT', array(
'module_basename' => '\brokencrust\deletemyaccount\ucp\delete_my_account_module',
'modes' => array('delete_my_account'),
),
)),
);
}
}