function feeds_get_plugins in Feeds 6
Gets all available plugins. Does not list hidden plugins.
Return value
An array where the keys are the plugin keys and the values are the plugin info arrays as defined in hook_feeds_plugins().
Related topics
3 calls to feeds_get_plugins()
- feeds_forms in ./
feeds.module - Implementation of hook_forms().
- feeds_get_plugins_by_type in ./
feeds.module - Gets all available plugins of a particular type.
- feeds_ui_edit_page in feeds_ui/
feeds_ui.admin.inc - Edit feed configuration.
File
- ./
feeds.module, line 748 - Feeds - basic API functions and hook implementations.
Code
function feeds_get_plugins() {
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;
}