You are here

function search_api_elasticsearch_menu in Search API Elasticsearch 7

Same name and namespace in other branches
  1. 7.2 search_api_elasticsearch.module \search_api_elasticsearch_menu()

Implements hook_menu().

File

./search_api_elasticsearch.module, line 11
Provides an elasticsearch-based service class for the Search API.

Code

function search_api_elasticsearch_menu() {
  $items['admin/config/search/search_api/index/%search_api_index/analysis'] = array(
    'title' => 'Analysis',
    'description' => 'Configure Elasticsearch analysis',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'search_api_elasticsearch_analysis_form',
      5,
    ),
    'access arguments' => array(
      'administer search_api',
    ),
    'file' => 'includes/search_api_elasticsearch.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'context' => MENU_CONTEXT_INLINE | MENU_CONTEXT_PAGE,
  );
  return $items;
}