function apachesolr_search_bias_form_reset in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 apachesolr_search.admin.inc \apachesolr_search_bias_form_reset()
- 7 apachesolr_search.admin.inc \apachesolr_search_bias_form_reset()
1 string reference to 'apachesolr_search_bias_form_reset'
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.'));
}