You are here

function apachesolr_search_make_default_submit in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 apachesolr_search.module \apachesolr_search_make_default_submit()
  2. 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()

1 string reference to 'apachesolr_search_make_default_submit'
apachesolr_search_form_apachesolr_settings_alter in ./apachesolr_search.module
Implementation of hook_form_[form_id]_alter().

File

./apachesolr_search.module, line 1057
Provides a content search implementation for node content for use with the Apache Solr search application.

Code

function apachesolr_search_make_default_submit($form, &$form_state) {

  // We use variable_get() instead of the form values so as to also handle reset to defaults.
  if ($form_state['values']['apachesolr_search_default_previous'] != variable_get('apachesolr_search_make_default', 0) || $form_state['values']['apachesolr_search_taxonomy_previous'] != variable_get('apachesolr_search_taxonomy_links', 0)) {

    // Take account of path changes
    menu_rebuild();
  }
}