Jump to content

Disable a module's hook temporarily


ExpressTech

Recommended Posts

Hi,

 

I have code which disables all the JS and CSS files depending upon a "popup" GET variable:

 

if(Tools::getValue('popup')) {
$this->context->smarty->assign('content_only',1);
$this->context->smarty->assign('css_files', null);
$this->context->smarty->assign('js_files',  null);
[ .. ]
}

 

But this code is not disabling all JS files and a module's JS file is loading nonetheless. I want to temporarily disable that module (or its hook) so that it does not load. 

 

Any ideas? 

 

Thanks

  

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...