finder_admin_custom_matching_submit

  1. finder
    1. 7.x-1.x
Versions
7.x-1.x finder_admin_custom_matching_submit($form, &$form_state)

Submit function for finder admin custom matching configuration page.

Code

includes/finder.admin.inc, line 1123

<?php
function finder_admin_custom_matching_submit($form, &$form_state) {
  $values = $form_state['values'];

  unset($values['actions']);
  $defaults = array_keys(finder_condition_args_default());
  foreach ($defaults as $key) {
    if (isset($values[$key])) {
      unset($values[$key]);
    }
  }

  $custom_matching = array();

  foreach ($values as $key => $value) {
    if (is_array($value) && isset($value['name']) && !empty($value['name'])) {
      $custom_matching[$key] = $value;
    }
  }

  variable_set('finder_custom_matching', $custom_matching);

}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.