Selfty Posted August 28, 2022 Share Posted August 28, 2022 Hello guys, I have configuration in BO, where user select modules. The informations are properly saved and then loaded if module hook is performed. Now my question: How can I disable selected modules, but just for current guest in FO? For better explanation lets imagine some cookie module, if user accept the cookies, all analytics modules loads and run properly, if guest disallow analytic cookies, then they won’t run/render. Thank you for any suggestions. Link to comment Share on other sites More sharing options...
knacky Posted August 30, 2022 Share Posted August 30, 2022 Hi. You need to create an override Hook.php in the classes folder. The function you need to override is public static function getHookModuleExecList($hookName = null). 1 Link to comment Share on other sites More sharing options...
Selfty Posted September 3, 2022 Author Share Posted September 3, 2022 On 8/30/2022 at 6:32 AM, knacky said: Hi. You need to create an override Hook.php in the classes folder. The function you need to override is public static function getHookModuleExecList($hookName = null). Thank you @knacky works as expected! 👍 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now