You are here

function _search_api_elasticsearch_configuration_form_ajax in Search API Elasticsearch 7

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

Ajax callback for adding more nodes.

_state

Parameters

array $form:

1 string reference to '_search_api_elasticsearch_configuration_form_ajax'
SearchApiElasticsearchAbstractService::configurationForm in includes/SearchApiElasticsearchAbstractService.inc
Overrides configurationForm().

File

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

Code

function _search_api_elasticsearch_configuration_form_ajax($form, &$form_state) {
  unset($form['options']['form']['add_more']);
  if (module_exists('search_api_facetapi')) {
    unset($form['options']['form']['facet_settings']);
  }
  return $form['options']['form'];
}