finder_admin_export_custom_matching
- finder
| Versions | |
|---|---|
| 7.x-1.x | finder_admin_export_custom_matching(&$finder) |
Handle custom matching in exports.
Code
includes/
<?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],
);
}
}
}
?>
