function activemenu_menu in Javascript Tools 5
Implementation of hook_menu().
File
- activemenu/
activemenu.module, line 11 - Add AJAX-based tree menu to navigation menu.
Code
function activemenu_menu($may_cache) {
$items = array();
if ($may_cache) {
// Need to load includes here because we need access to menu item definitions.
// The call below (after the else) is too late.
jstools_modules_includes('activemenu');
$items[] = array(
'path' => 'activemenu/menu',
'title' => t('activemenu'),
'access' => user_access('access content'),
'type' => MENU_CALLBACK,
'callback' => 'activemenu_js',
);
}
else {
jstools_modules_includes('activemenu');
activemenu_load();
}
$items = array_merge($items, module_invoke_all('activemenu_menu', $may_cache));
return $items;
}