function module_grants_entity_test_menu in Module Grants 7
Implements hook_menu().
Sets up a page that call entity_access().
File
- tests/
module_grants_entity_test.module, line 13 - We need this module to create a page to test entity access
Code
function module_grants_entity_test_menu() {
$items = array();
$items['entity_access_test_page'] = array(
'title' => 'Entity access test',
'page callback' => 'module_grants_entity_test_entity_access_test_page',
'access arguments' => array(
'access content',
),
'type' => MENU_SUGGESTED_ITEM,
);
return $items;
}