I need to check whether a hook is implemented in a module, so I chose
module_hook function. In the documentation it states that the Return Value will be:
TRUE if the module is both installed and enabled, and the hook is implemented in that module.
Now, I named a callback function (not a hook) in my module as "
Note: my_module is the name of my module.
If I test this function in
It returns TRUE.
I thought It would return TRUE only for registered hooks and not for any function callbacks. Does
module_hookknow the difference between a function and a hook?
Is there any function like
hook_information($hook)which returns information about a hook?
Is this right? Am I missing something?