function _search_api_elasticsearch_configuration_form_remove_custom in Search API Elasticsearch 7.2
Same name and namespace in other branches
- 7 search_api_elasticsearch.module \_search_api_elasticsearch_configuration_form_remove_custom()
Submit handler on removing elements
_state
Parameters
array $form:
1 string reference to '_search_api_elasticsearch_configuration_form_remove_custom'
- SearchApiElasticsearchService::configurationForm in includes/
SearchApiElasticsearchService.inc - @inheritdoc
File
- ./
search_api_elasticsearch.module, line 184 - Provides an elasticsearch-based service class for the Search API.
Code
function _search_api_elasticsearch_configuration_form_remove_custom($form, &$form_state) {
$form_state['values']['remove_delta'] = 'none';
if (isset($form_state['triggering_element']['#remove_delta'])) {
$form_state['values']['remove_delta'] = $form_state['triggering_element']['#remove_delta'];
}
$form_state['rebuild'] = TRUE;
}