function get_site_name in Search API Federated Solr 7.2
Same name and namespace in other branches
- 7.3 search_api_federated_solr.module \get_site_name()
- 7 search_api_federated_solr.module \get_site_name()
Ajax callback for search_api_federated_solr_search_index.
1 string reference to 'get_site_name'
- search_api_federated_solr_admin in ./
search_api_federated_solr.admin.inc - Create search_api_federated_solr config form.
File
- ./
search_api_federated_solr.module, line 536 - search_api_federated_solr.module Contains hook implementations for the Federated Solr Search API Module.
Code
function get_site_name($form, $form_state) {
if (!empty($form_state['values']['search_api_federated_solr_search_index'])) {
$search_index = $form_state['values']['search_api_federated_solr_search_index'];
$index = search_api_index_load($search_index);
$is_site_name_property = isset($index->options['fields']['site_name']) ? 'true' : '';
$form['search_api_federated_solr_has_site_name_property']['#value'] = $is_site_name_property;
$form_state['values']['search_api_federated_solr_has_site_name_property'] = $is_site_name_property;
}
return $form;
}