You are here

public static function FeedImport::processFunctions in Feed Import 7

Same name and namespace in other branches
  1. 7.2 feed_import.inc.php \FeedImport::processFunctions()

Returns all available functions for processing a feed.

3 calls to FeedImport::processFunctions()
FeedImport::processFeed in ./feed_import.inc.php
This function is choosing process function and executes it
feed_import_add_new_feed_form in ./feed_import.module
Add a new feed form
feed_import_edit_feed_form in ./feed_import.module
Edit feed form

File

./feed_import.inc.php, line 168
Feed import class for parsing and processing content

Class

FeedImport
@file Feed import class for parsing and processing content

Code

public static function processFunctions() {
  static $functions = NULL;
  if ($functions != NULL) {
    return $functions;
  }
  $functions = module_invoke_all('feed_import_process_info');

  // Well, check if functions really exists
  foreach ($functions as $alias => &$func) {
    if (is_array($func)) {
      if (!method_exists($func[0], $func[1])) {
        unset($functions[$alias]);
      }
    }
    else {
      if (!function_exists($func)) {
        unset($functions[$alias]);
      }
    }
  }
  return $functions;
}