You are here

function facetapi_test_menu in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 tests/facetapi_test/facetapi_test.module \facetapi_test_menu()
  2. 7 tests/facetapi_test.module \facetapi_test_menu()

Implements hook_menu().

File

tests/facetapi_test.module, line 16
Provides a test adapter and plugins.

Code

function facetapi_test_menu() {
  $items = array();
  $items['admin/config/search/facetapi_test'] = array(
    'title' => 'Facet API test',
    'description' => 'Settings for the Facet API module.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'facetapi_test_admin_settings',
    ),
    'access arguments' => array(
      'administer search',
    ),
  );
  $items['admin/config/search/facetapi_test/settings'] = array(
    'title' => 'Settings',
    'weight' => -10,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['facetapi_test/search'] = array(
    'title' => 'Search',
    'description' => 'Fake search page callback.',
    'page callback' => 'facetapi_test_search_callback',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}