You are here

function feeds_tamper_load_all_instances in Feeds Tamper 6

Same name and namespace in other branches
  1. 7 feeds_tamper.inc \feeds_tamper_load_all_instances()

Load all plugin instances.

Parameters

bool $disabled: (optional) If TRUE, load disabled plugin instances. Defaults to FALSE.

Return value

array An associative array of plugin instances keyed to their id.

Related topics

File

./feeds_tamper.inc, line 35
Version agnostic parts of feeds_tamper.module.

Code

function feeds_tamper_load_all_instances($disabled = FALSE) {
  $instances = array();
  ctools_include('export');
  $configs = ctools_export_crud_load_all('feeds_tamper');
  foreach ($configs as $instance_id => $config) {
    if (!empty($config->id) && ($disabled || empty($config->disabled))) {
      $instances[$instance_id] = $config;
    }
  }
  return $instances;
}