You are here

function facetapi_menu in Facet API 6

Same name and namespace in other branches
  1. 6.3 facetapi.module \facetapi_menu()
  2. 7.2 facetapi.module \facetapi_menu()
  3. 7 facetapi.module \facetapi_menu()

Implementation of hook_menu().

File

./facetapi.module, line 71
An abstracted facet API that can be used by various search backens.

Code

function facetapi_menu() {
  $items = array();

  // Configuration page for a facet.
  $items['admin/settings/%facetapi_adapter/facetapi/%facetapi_realm/%facetapi_facet'] = array(
    'title' => 'Facet configuration settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'facetapi_facet_settings_form',
      2,
      4,
      5,
    ),
    'load arguments' => array(
      2,
    ),
    'access arguments' => array(
      'administer search',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'facetapi.admin.inc',
  );

  // Default tab for the facet configuration pages.
  $items['admin/settings/%facetapi_adapter/facetapi/%facetapi_realm/%facetapi_facet/edit'] = array(
    'title' => 'Edit',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'load arguments' => array(
      2,
    ),
    'weight' => -40,
  );
  return $items;
}