You are here

public static function FeedsPlugin::byType in Feeds 7

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

Gets all available plugins of a particular type.

Parameters

$type: 'fetcher', 'parser' or 'processor'

1 call to FeedsPlugin::byType()
feeds_ui_plugin_form in feeds_ui/feeds_ui.admin.inc
Build a form of plugins to pick from.

File

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

Class

FeedsPlugin
Implement source interface for all plugins.

Code

public static function byType($type) {
  $plugins = self::all();
  $result = array();
  foreach ($plugins as $key => $info) {
    if ($type == self::typeOf($key)) {
      $result[$key] = $info;
    }
  }
  return $result;
}