You are here

function fuzzysearch_scoring_submit in Fuzzy Search 6

Save the score modifiers as set in the administrative form.

File

./fuzzysearch.admin.inc, line 294
Admin settings and related functions

Code

function fuzzysearch_scoring_submit($form, &$form_state) {
  foreach ($form_state['values'] as $key => $value) {
    if ($key != 'op' || $key != 'submit' || $key != 'form_token' || $key != 'form_id') {
      variable_set('fuzzysearch_scoring_' . $key, $value);
    }
  }
  drupal_set_message(t('Score factor multipliers have been updated'));
}