Jump to content

Create new hooks


Recommended Posts

How can i create and associate new hooks on my new theme.

This is the way i'm doing it, but it's not working

a) Create the new hook on table 'hook'

| ID | NAME | TITLE | DESCRIPTION | POSITION |
--------------------------------------------
| 32 | test | Test   | Test Hook  | 1        |



B) Add a hookTest function to the module and create the tpl file if necessary

function hookTest($params) 
{
 ...
}



c) Transplant the module to the hook i've just created.
d) Add the {$HOOK_TEST} in the theme.
c) Test it.

Result: Nothing happens.

Link to comment
Share on other sites

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