UNTESTED. You could try amending the file to;
Code: Select all
public static $GROUP_KEYS = [
'contact_us' => 'MODULE_CONTENT_CU_INSTALLED',
'index' => 'MODULE_CONTENT_I_INSTALLED',
'product_info' => 'MODULE_CONTENT_PI_INSTALLED',
'info' => 'MODULE_CONTENT_INFO_INSTALLED',
];
AND then change each instance of GROUP_KEYS to $GROUP_KEYS
--
At this point, hooks should now be able to push extra entries in $GROUP_KEYS.
EG [ /includes/hooks/admini/modules/login.php ]:
Code: Select all
class hook_admin_modules_login {
public function listen_injectBodyStart() {
cfgm_layout::$GROUP_KEYS['login'] = 'MODULE_PI_LOGIN_INSTALLED';
}
}
Now you need a MODULE_PI_LOGIN_INSTALLED in the database, empty ready to store the installed Layout Modules which you would create for Login, see (eg)
https://github.com/CE-PhoenixCart/Phoen ... .sql#L2078 which is for the Contact Us PI modules.
--
It's increasingly difficult to get pro-active testers helping move Phoenix forwards; If you do try any of the above, please report back if it all works or not (make sure to test for unintended side-effects).