Jump to content

Create New Hook To Call Inside Another Module


OunknownO

Recommended Posts

First you must create new function inside blocksearch.php. For example:

public function hookYourHookName()
{
    //your code
}

Second you must create this hook inside leomegamenu. Probably some .tpl file. 

{hook h='YourHookName'}

And finally you must adding blocksearch module to this hook inside back-office.

Link to comment
Share on other sites

  • 8 months later...
Hello!

 

The solution provided works for me but I have a problem with the styles and javascript of my module, and is that it does not link them when I put the hook, I have checked to see if other styles kill those of the module but they do not even appear ...

 

Any ideas?

 

Thank you!

Link to comment
Share on other sites

  • 2 months later...

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...