function menutree_menu in MenuTree 5
Same name and namespace in other branches
- 6 menutree.module \menutree_menu()
Implementation of hook_menu().
File
- ./
menutree.module, line 37 - This module provides a simple "site map" tree based on the menu system rather than on taxonomies.
Code
function menutree_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'menutree',
'title' => t('Sitemap'),
'access' => user_access('view site tree'),
'callback' => 'menutree_display_page',
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'menutree/all',
'title' => t('Sitemap'),
'access' => user_access('view site tree'),
'callback' => 'menutree_display_all',
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/build/menutree',
'title' => t('Menu trees'),
'description' => t('Configure page titles and intro text for menu tree pages.'),
'access' => user_access('administer menu tree'),
'callback' => 'drupal_get_form',
'callback arguments' => 'menutree_settings',
);
}
return $items;
}