You are here

function search_api_test_menu in Search API 7

Implements hook_menu().

File

tests/search_api_test.module, line 11
Test functions and classes for testing the Search API.

Code

function search_api_test_menu() {
  return array(
    'search_api_test/insert' => array(
      'title' => 'Insert item',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'search_api_test_insert_item',
      ),
      'access callback' => TRUE,
    ),
    'search_api_test/view/%search_api_test' => array(
      'title' => 'View item',
      'page callback' => 'search_api_test_view',
      'page arguments' => array(
        2,
      ),
      'access callback' => TRUE,
    ),
    'search_api_test/touch/%search_api_test' => array(
      'title' => 'Mark item as changed',
      'page callback' => 'search_api_test_touch',
      'page arguments' => array(
        2,
      ),
      'access callback' => TRUE,
    ),
    'search_api_test/delete/%search_api_test' => array(
      'title' => 'Delete items',
      'page callback' => 'search_api_test_delete',
      'page arguments' => array(
        2,
      ),
      'access callback' => TRUE,
    ),
  );
}