function node_access_test_menu

Implements hook_menu().

Sets up a page that lists nodes.

File

modules/node/tests/node_access_test.module, line 80

Code

function node_access_test_menu() {
    $items = array();
    $items['node_access_test_page'] = array(
        'title' => 'Node access test',
        'page callback' => 'node_access_test_page',
        'access arguments' => array(
            'access content',
        ),
        'type' => MENU_SUGGESTED_ITEM,
    );
    $items['node_access_entity_test_page'] = array(
        'title' => 'Node access test',
        'page callback' => 'node_access_entity_test_page',
        'access arguments' => array(
            'access content',
        ),
        'type' => MENU_SUGGESTED_ITEM,
    );
    return $items;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.