Timeline for How to make hook in custom module to execute only on condition
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 15, 2013 at 8:42 | vote | accept | NenadP | ||
Jan 27, 2013 at 14:50 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
added 2 characters in body
|
Jan 26, 2013 at 14:30 | comment | added | AKS | Most hooks are cached so if you conditionally DEFINE a function, it will give problems. This is how we usually do. Have a look at hook_form_alter functions there. You will see it in many forms. | |
Jan 26, 2013 at 10:21 | comment | added | SGhosh | Also, in my knowledge hooks are not meant to be called from functions. All hooks of a type are called by core when they are supposed to be executed. | |
Jan 26, 2013 at 10:14 | history | answered | SGhosh | CC BY-SA 3.0 |