Closed (fixed)
Project:
Domain
Version:
6.x-1.0-rc4
Component:
- Domain Nav
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2008 at 16:11 UTC
Updated:
8 Aug 2008 at 15:44 UTC
Heya,
I just tried using hook_domainnav() as described in the domain API documentation (API.php) but it turns out that the hook never actually gets invoked.
Function domain_nav_render() around line 188:
$extra = array();
$extra = module_invoke_all('domainlist', $value);
$value = array_merge($value, $extra);
$options[$value['domain_id']] = $value;
hook_domainlist() is invoked instead of hook_domainnav()... is this a typo or the API documentation out of date?
(I'm working with HEAD: v1.9 2008/05/18 14:37:13)
Comments
Comment #1
agentrickardThis is a case where I changed the name of the hook -- for clarity, since it does not generate a list -- and forgot to change the function.
It should be:
This would apply to D5 and D6.
Comment #2
bforchhammer commentedworks perfectly.
Comment #3
agentrickardFixed in D6.
Comment #4
agentrickardCommitted to 5.x.dev.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.