1 admin_bar.map.inc | node_admin_bar_map() |
Implements hook_admin_bar_map() on behalf of Node module.
File
- core/
modules/ admin_bar/ admin_bar.map.inc, line 67 - Implements hook_admin_bar_map() on behalf of core modules.
Code
function node_admin_bar_map() {
if (!user_access('administer content types')) {
return;
}
$types = node_type_get_types();
foreach ($types as $type_name => $type) {
if ($type->disabled) {
unset($types[$type_name]);
}
}
$map['admin/structure/types/manage/%node_type'] = array(
'parent' => 'admin/structure/types',
'arguments' => array(
array('%node_type' => array_keys($types)),
),
);
return $map;
}