function devel_node_access_menu
Same name in other branches
- 7.x-1.x devel_node_access.module \devel_node_access_menu()
File
-
./
devel_node_access.module, line 40
Code
function devel_node_access_menu() {
$items = array();
// add this to the custom menu 'devel' created by devel module.
$items['devel/node_access/summary'] = array(
'title' => 'Node_access summary',
'page callback' => 'dna_summary',
'access arguments' => array(
DNA_ACCESS_VIEW,
),
'menu_name' => 'devel',
);
if (!module_exists('devel')) {
$items['admin/settings/devel'] = array(
'title' => 'Devel node access',
'description' => 'Helper pages and blocks to assist Drupal developers and admins with node_access. The devel blocks can be managed via the Blocks (admin/build/block) page.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_node_access_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}