function entity_test_menu

Implements hook_menu().

File

drupal/core/modules/system/tests/modules/entity_test/entity_test.module, line 47
Test module for the entity API providing an entity type for testing.

Code

function entity_test_menu() {
  $items = array();
  $items['entity-test/add'] = array(
    'title' => 'Add an entity_test',
    'page callback' => 'entity_test_add',
    'access arguments' => array(
      'administer entity_test content',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['entity-test/manage/%entity_test'] = array(
    'title' => 'Edit test entity',
    'page callback' => 'entity_test_edit',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'administer entity_test content',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['entity-test/manage/%entity_test/edit'] = array(
    'title' => 'Edit',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  return $items;
}