You are here

public static function FeedsPlugin::all in Feeds 7

Same name and namespace in other branches
  1. 7.2 plugins/FeedsPlugin.inc \FeedsPlugin::all()

Get all available plugins.

3 calls to FeedsPlugin::all()
FeedsPlugin::byType in plugins/FeedsPlugin.inc
Gets all available plugins of a particular type.
feeds_forms in ./feeds.module
Implements hook_forms().
feeds_ui_edit_page in feeds_ui/feeds_ui.admin.inc
Edit feed configuration.

File

plugins/FeedsPlugin.inc, line 105
Definition of FeedsPlugin class.

Class

FeedsPlugin
Implement source interface for all plugins.

Code

public static function all() {
  ctools_include('plugins');
  $plugins = ctools_get_plugins('feeds', 'plugins');
  $result = array();
  foreach ($plugins as $key => $info) {
    if (!empty($info['hidden'])) {
      continue;
    }
    $result[$key] = $info;
  }

  // Sort plugins by name and return.
  uasort($result, 'feeds_plugin_compare');
  return $result;
}