Skip to main content
5 events
when toggle format what by license comment
Mar 15, 2012 at 20:03 comment added Clive Don't forget you're altering an existing menu item...the taxonomy module has already set 'page arguments' => array(2) in it's implementation of hook_menu(). Unless you (or another module) specifically unsets the page arguments in hook_menu_alter() then the original ones will still be there
Mar 15, 2012 at 19:54 comment added Ashlar In your example, the callback function takes $term as an argument. Doesn't that mean that a 'page argument' must also be passed in the hook_menu_alter? I believe the line: $items[...['page arguments'] = array (2); should be added.
Mar 15, 2012 at 18:24 vote accept Ashlar
Mar 15, 2012 at 17:50 history edited Clive CC BY-SA 3.0
added 330 characters in body
Mar 15, 2012 at 17:43 history answered Clive CC BY-SA 3.0