You are here

public static function FeedImport::getFieldsCompareFunctions in Feed Import 7.3

Returns field compare functions.

1 call to FeedImport::getFieldsCompareFunctions()
FeedImport::setProcessorSettings in feed_import_base/inc/feed_import.inc
Sets processor settings.

File

feed_import_base/inc/feed_import.inc, line 210
This file contains Feed Import helpers.

Class

FeedImport
This class provides helper functions for feed import.

Code

public static function getFieldsCompareFunctions() {
  $funcs = module_invoke_all('feed_import_field_compare_functions');
  foreach ($funcs as $type => &$f) {
    if (is_array($f)) {
      for ($i = 0, $max = count($f); $i < $max; $i++) {
        if (is_callable($f[$i])) {
          $f = $f[$i];
          continue 2;
        }
      }
      unset($funcs[$type]);
    }
    elseif (!is_callable($f)) {
      unset($funcs[$type]);
    }
  }
  return $funcs;
}