function apachesolr_search_make_default_submit in Apache Solr Search 5.2
Same name and namespace in other branches
- 6 apachesolr_search.module \apachesolr_search_make_default_submit()
- 6.2 apachesolr_search.module \apachesolr_search_make_default_submit()
Form submit funtion - do a menu rebuild if needed.
See also
apachesolr_search_form_apachesolr_settings_alter()
File
- ./
apachesolr_search.module, line 988 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function apachesolr_search_make_default_submit($form_id, $form_values) {
// We use variable_get() instead of the form values so as to also handle reset to defaults.
if ($form_values['apachesolr_search_default_previous'] != variable_get('apachesolr_search_make_default', 0) || $form_values['apachesolr_search_taxonomy_previous'] != variable_get('apachesolr_search_taxonomy_links', 0)) {
// Take account of path changes
menu_rebuild();
}
}