function devel_node_access_menu in Devel 5
Same name and namespace in other branches
- 6 devel_node_access.module \devel_node_access_menu()
- 7 devel_node_access.module \devel_node_access_menu()
File
- ./
devel_node_access.module, line 42 - 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($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'devel/node_access/summary',
'title' => t('node_access summary'),
'callback' => 'dna_summary',
'access' => user_access(DNA_ACCESS_VIEW),
'type' => MENU_CALLBACK,
);
if (!module_exists('devel')) {
$items[] = array(
'path' => 'admin/settings/devel',
'title' => t('Devel node access'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'devel_node_access_admin_settings',
),
'access' => user_access('administer site configuration'),
'type' => MENU_NORMAL_ITEM,
);
}
}
return $items;
}