You are here

function taxonomy_manager_admin_menu_map in Taxonomy Manager 8

Same name and namespace in other branches
  1. 7 taxonomy_manager.module \taxonomy_manager_admin_menu_map()
  2. 2.0.x taxonomy_manager.module \taxonomy_manager_admin_menu_map()

Implements hook_admin_menu_map().

File

./taxonomy_manager.module, line 13
Taxonomy Manager.

Code

function taxonomy_manager_admin_menu_map() {
  if (!user_access('administer taxonomy')) {
    return;
  }
  $map['admin/structure/taxonomy_manager/voc/%taxonomy_vocabulary_machine_name'] = [
    'parent' => 'admin/structure/taxonomy_manager/voc',
    'arguments' => [
      [
        '%taxonomy_vocabulary_machine_name' => array_keys(taxonomy_vocabulary_get_names()),
      ],
    ],
  ];
  return $map;
}