function feeds_get_plugins_by_type in Feeds 6
Gets all available plugins of a particular type.
Parameters
$type: 'fetcher', 'parser' or 'processor'
Related topics
1 call to feeds_get_plugins_by_type()
- feeds_ui_plugin_form in feeds_ui/
feeds_ui.admin.inc - Build a form of plugins to pick from.
File
- ./
feeds.module, line 778 - Feeds - basic API functions and hook implementations.
Code
function feeds_get_plugins_by_type($type) {
$plugins = feeds_get_plugins();
$result = array();
foreach ($plugins as $key => $info) {
if ($type == feeds_plugin_type($key)) {
$result[$key] = $info;
}
}
return $result;
}