function taxonomy_menu_trails_menu in Taxonomy Menu Trails 6.x
Same name and namespace in other branches
- 6 taxonomy_menu_trails.module \taxonomy_menu_trails_menu()
Implementation of hook_menu().
File
- ./
taxonomy_menu_trails.module, line 55 - Changes menu trail of current node to its lightest term's menu item (only if node doesn't belong to any menu)
Code
function taxonomy_menu_trails_menu() {
$items = array(
'admin/settings/taxonomy-menu-trails' => array(
'title' => 'Taxonomy menu trails',
'description' => 'Settings for taxonomy-based active trail on the node page.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_menu_trails_settings',
),
'access arguments' => array(
'administer taxonomy menu trails',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'taxonomy_menu_trails.admin.inc',
),
);
return $items;
}