You are here

function devel_node_access_menu in Devel 6

Same name and namespace in other branches
  1. 5 devel_node_access.module \devel_node_access_menu()
  2. 7 devel_node_access.module \devel_node_access_menu()


./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.


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(
    '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(
      'access arguments' => array(
        'administer site configuration',
      'type' => MENU_NORMAL_ITEM,
  return $items;