You are here

function finder_admin_export_custom_matching in Finder 7

Handle custom matching in exports.

1 call to finder_admin_export_custom_matching()
finder_admin_export in includes/finder.admin.inc
Admin finder export page.

File

includes/finder.admin.inc, line 1191
The finder admin screens.

Code

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],
      );
    }
  }
}