function search_api_elasticsearch_attach_ajax_callback in Search API Elasticsearch 7.2
Same name and namespace in other branches
- 7 search_api_elasticsearch.module \search_api_elasticsearch_attach_ajax_callback()
Attach the Ajax attributes.
Parameters
array $form:
File
- ./
search_api_elasticsearch.module, line 102 - Provides an elasticsearch-based service class for the Search API.
Code
function search_api_elasticsearch_attach_ajax_callback(&$form) {
$form['options']['#prefix'] = '<div id="elasticsearch-add-index">';
$form['options']['#suffix'] = '</div>';
$form['server']['#ajax'] = array(
'callback' => 'search_api_elasticsearch_ajax_callback',
'wrapper' => 'elasticsearch-add-index',
'method' => 'replace',
'effect' => 'fade',
);
}