16 Oct
2009
16 Oct
'09
3:57 p.m.
On 10/16/2009 08:53 AM, Nancy Wichmann wrote:
Earnie Boyd wrote
So I have a module foo implementing hook_foo_bar. Module foo checks for any implementation of hook_foo_bar by calling module_invoke_all('foo_bar') in its foo_bar() function.
It can look funny, though, if a module uses its own hook, which several of mine do. You can end up with "function foo_bar_foo_bar()".
I don't think it looks funny. In fact i appreciate when authors do this as it helps me implement the hook in my own modules and helps the developer keep in mind the needs of someone using the hooks. -mf