You are here

function apachesolr_search_bias_form_reset in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr_search.admin.inc \apachesolr_search_bias_form_reset()
  2. 7 apachesolr_search.admin.inc \apachesolr_search_bias_form_reset()
1 string reference to 'apachesolr_search_bias_form_reset'
apachesolr_search_bias_form in ./apachesolr_search.admin.inc

File

./apachesolr_search.admin.inc, line 726
Administrative settings for searching.

Code

function apachesolr_search_bias_form_reset($form, &$form_state) {

  // Exclude unnecessary elements.
  form_state_values_clean($form_state);
  foreach ($form_state['values'] as $key => $value) {
    apachesolr_environment_variable_del($form['#env_id'], $key);
  }
  drupal_set_message(t('The configuration options have been reset to their default values.'));
}