[support] 404 or alias for menu hook

Ivan Sergio Borgonovo mail at webthatworks.it
Mon Jan 28 18:18:39 UTC 2008


On Mon, 28 Jan 2008 08:01:14 -0800
"Metzler, David" <metzlerd at evergreen.edu> wrote:

> Would need to see the menu $items definitions for these to give
> better feedback.  It doesn't sound like you're generating the menu
> item correctly. 

mmm the menu works.
I get the "root" menu in the admin page, the submenu in the
navigation block and the tabs.

Menu hierarchy is something like:

$items[] = array(
'path' => 'admin/settings/mymodule',
'callback' => 'drupal_get_form',
'callback arguments' =>'mymodule_admin_settings',
'type' => MENU_NORMAL_ITEM,
);
$items[] = array(
'path' => 'admin/settings/mymodule/subsettings',
'callback' => 'drupal_get_form',
'callback arguments' =>'mymodule_admin_settings2',
'type' => MENU_NORMAL_ITEM,
);
$items[] = array(
'path' => 'admin/settings/mymodule/subsettings/action1',
'callback' => 'drupal_get_form',
'callback arguments' =>'mymodule_admin_settings3',
'type' => MENU_DEFAULT_LOCAL_TASK,,
);
$items[] = array(
'path' => 'admin/settings/mymodule/subsettings/action2',
'callback' => 'drupal_get_form',
'callback arguments' =>'mymodule_admin_settings4',
'type' => MENU_LOCAL_TASK,
);

admin/settings/rubbish -> list of modules
admin/settings/amodule/rubbish -> same page as admin/settings/amodule/
where amodule in (admin, fckeditor, localisation, uploads...)

But all those modules don't have submenu. So maybe it is something
related to submenus (?)

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it



More information about the support mailing list