function devel_node_access_menu in Devel 6
Same name and namespace in other branches
- 5 devel_node_access.module \devel_node_access_menu()
- 7 devel_node_access.module \devel_node_access_menu()
File
- ./
devel_node_access.module, line 40 - This module gives developers feedback as to what their node_access table contains, and which nodes are protected or visible to the public.
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;
}