You are here

public static function FeedImport::processFunctions in Feed Import 7.2

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

Returns all available functions for processing a feed.

4 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
feed_import_edit_feed_form_validate in ./feed_import.module
Edit feed form validate

File

./feed_import.inc.php, line 165
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['function'])) {
      if (!method_exists($func['function'][0], $func['function'][1])) {
        unset($functions[$alias]);
      }
    }
    else {
      if (!function_exists($func['function'])) {
        unset($functions[$alias]);
      }
    }
  }
  return $functions;
}