finder_admin_export_custom_matching

  1. finder
    1. 7.x-1.x
Versions
7.x-1.x finder_admin_export_custom_matching(&$finder)

Handle custom matching in exports.

Code

includes/finder.admin.inc, line 1188

<?php
function finder_admin_export_custom_matching(&$finder) {
  // Change how match method is stored to support custom matching.
  $custom_matching = variable_get('finder_custom_matching', array());
  foreach ($finder->elements as $feid => &$element) {
    $match = $element->settings['advanced']['match'];
    if (isset($custom_matching[$match])) {
      $element->settings['advanced']['match'] = array(
        $match => $custom_matching[$match],
      );
    }
  }
}
?>

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.