You are here

function node_admin_menu_map in Administration menu 7.3

Same name and namespace in other branches
  1. 8.3 admin_menu.map.inc \node_admin_menu_map()

Implements hook_admin_menu_map() on behalf of Node module.

File

./admin_menu.map.inc, line 46
Implements hook_admin_menu_map() on behalf of core modules.

Code

function node_admin_menu_map() {
  if (!user_access('administer content types')) {
    return;
  }
  $map['admin/structure/types/manage/%node_type'] = array(
    'parent' => 'admin/structure/types',
    'arguments' => array(
      array(
        '%node_type' => array_keys(node_type_get_types()),
      ),
    ),
  );
  return $map;
}