function taxonomy_menu_menu in Taxonomy menu 6.3
Same name and namespace in other branches
- 5 taxonomy_menu.module \taxonomy_menu_menu()
- 6 taxonomy_menu.module \taxonomy_menu_menu()
Implementation of hook_menu().
File
- ./
taxonomy_menu.module, line 21 - It Generates menu links for all selected taxonomy terms
Code
function taxonomy_menu_menu() {
$base = 'admin/build/taxonomy_menu';
$admin_file = 'taxonomy_menu.admin.inc';
$items[$base] = array(
'title' => 'Taxonomy Menu',
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'taxonomy menu admin',
),
'page callback' => 'taxonomy_menu_group_list',
'file' => $admin_file,
);
$items["{$base}/group"] = array(
'title' => 'Menu Groups',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items["{$base}/termset"] = array(
'title' => 'Term Sets',
'type' => MENU_LOCAL_TASK,
'page callback' => 'taxonomy_menu_term_sets',
'weight' => 3,
'access arguments' => array(
'taxonomy menu admin',
),
'file' => $admin_file,
);
$items["{$base}/group/list"] = array(
'title' => 'Menu Groups',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items["{$base}/group/add"] = array(
'title' => 'Add Menu Group',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_menu_group_form',
),
'weight' => 1,
'access arguments' => array(
'taxonomy menu admin',
),
'file' => $admin_file,
);
$items["{$base}/group/%/edit"] = array(
'type' => MENU_CALLBACK,
'title' => 'Taxonomy Menu Group',
'access arguments' => array(
'taxonomy menu admin',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_menu_group_form',
4,
),
'file' => $admin_file,
);
$items["{$base}/group/%/remove"] = array(
'type' => MENU_CALLBACK,
'title' => 'Remove Term Set',
'access arguments' => array(
'taxonomy menu admin',
),
'page callback' => 'taxonomy_menu_group_remove_term_set',
'page arguments' => array(
4,
),
'file' => $admin_file,
);
$items["{$base}/group/%/delete"] = array(
'type' => MENU_CALLBACK,
'title' => t('Delete Menu Group'),
'weight' => 10,
'page arguments' => array(
'taxonomy_menu_group_delete_confirm',
4,
),
'page callback' => 'drupal_get_form',
'file' => $admin_file,
'access arguments' => array(
'taxonomy menu admin',
),
);
$items["{$base}/termset/list"] = array(
'title' => 'Term Sets',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items["{$base}/termset/add"] = array(
'title' => 'Add Term Set',
'type' => MENU_LOCAL_TASK,
'page callback' => 'taxonomy_menu_term_set_add',
'file' => $admin_file,
'weight' => 5,
'access arguments' => array(
'taxonomy menu admin',
),
);
$items["{$base}/termset/%/edit"] = array(
'title' => 'Edit Term Set',
'type' => MENU_CALLBACK,
'page arguments' => array(
4,
),
'page callback' => 'taxonomy_menu_term_set_add',
'access arguments' => array(
'taxonomy menu admin',
),
'file' => $admin_file,
);
$items["{$base}/termset/%/delete"] = array(
'title' => 'Delete Term Set',
'type' => MENU_CALLBACK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_menu_term_set_delete_confirm',
4,
),
'access arguments' => array(
'taxonomy menu admin',
),
'file' => $admin_file,
);
$items['taxonomy_menu/ahah/tids'] = array(
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'taxonomy menu admin',
),
'file' => $admin_file,
'page callback' => 'taxonomy_menu_ahah_tids',
);
$items['taxonomy_menu/ahah/path'] = array(
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'taxonomy menu admin',
),
'file' => $admin_file,
'page callback' => 'taxonomy_menu_ahah_path',
);
$items['taxonomy_menu/ahah/term_sets'] = array(
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'taxonomy menu admin',
),
'file' => $admin_file,
'page callback' => 'taxonomy_menu_ahah_term_sets',
);
$items['taxonomy_menu/ahah/term_sets_remove'] = array(
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'taxonomy menu admin',
),
'file' => $admin_file,
'page callback' => 'taxonomy_menu_ahah_term_set_remove',
);
return $items;
}