You are here

function apachesolr_search_bias_form_reset in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 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 779
Administrative settings for searching.

Code

function apachesolr_search_bias_form_reset($form, &$form_state) {

  // Exclude unnecessary elements.
  unset($form_state['values']['form_id']);
  unset($form_state['values']['form_build_id']);
  unset($form_state['values']['form_token']);
  unset($form_state['values']['reset']);
  unset($form_state['values']['op']);
  unset($form_state['values']['submit']);
  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.'));
}