Mogul Posted July 4, 2009 Share Posted July 4, 2009 Why do some modules only work when hooked to certain hooks?Is there a way to change this? Link to comment Share on other sites More sharing options...
Mogul Posted July 4, 2009 Author Share Posted July 4, 2009 I have since located code inside the PHP file of each module which I think identifies different hooks. I don't know exactly how it works yet, but I believe it identifies hooks on which certain modules may or may not exist.Anyone else figured this out? Link to comment Share on other sites More sharing options...
rocky Posted July 5, 2009 Share Posted July 5, 2009 Yes, each module has hook functions that define how the module should be displayed in different positions. If there is no hook for a position, then the module will not display if you put the module in that position. You can add a hook and simply have it display the same as another hook by using code like the following: function hookRightColumn($params) { return $this->hookLeftColumn($params); } This code will display the module in the right column the same way as in the left column. You can do the same with other hooks.I hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts