function feeds_importer_load_all in Feeds 8.2
Same name and namespace in other branches
- 6 feeds.module \feeds_importer_load_all()
- 7.2 feeds.module \feeds_importer_load_all()
- 7 feeds.module \feeds_importer_load_all()
Loads all importers.
Parameters
$load_disabled: Pass TRUE to load all importers, enabled or disabled, pass FALSE to only retrieve enabled importers.
Return value
An array of all feed configurations available.
Related topics
7 calls to feeds_importer_load_all()
- feeds_menu in ./
feeds.module - Implements hook_menu().
- feeds_page in ./
feeds.pages.inc - Render a page of available importers.
- feeds_permission in ./
feeds.module - Implements feeds_permission().
- feeds_rules_event_info in ./
feeds.rules.inc - Implements hook_rules_event_info().
- feeds_ui_overview_form in feeds_ui/
feeds_ui.admin.inc - Build overview of available configurations.
File
- ./
feeds.module, line 689 - Feeds - basic API functions and hook implementations.
Code
function feeds_importer_load_all($load_disabled = FALSE) {
$feeds = array();
foreach (config_get_storage_names_with_prefix('feeds.importer') as $file) {
$id = config($file)
->get('id');
$config = config($file)
->get('config');
if (!empty($id) && ($load_disabled || empty($config['disabled']))) {
$feeds[$id] = feeds_importer($id);
}
}
return $feeds;
}