1 node_access_test.module node_access_test_menu()

Implements hook_menu().

Sets up a test page that lists nodes.

File

core/modules/node/tests/node_access_test/node_access_test.module, line 80
A dummy module implementing node access related hooks for testing purposes.

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;
}