You are here

function feeds_features_pipe_feeds_importer_alter in Feeds 7.2

Implements hook_features_pipe_COMPONENT_alter() for 'feeds_importer'.

Automatically adds dependencies when a Feed importer is selected in Features.

Related topics

File

./feeds.module, line 857
Feeds - basic API functions and hook implementations.

Code

function feeds_features_pipe_feeds_importer_alter(&$pipe, $data, &$export) {
  foreach ($data as $importer_id) {
    if ($importer = feeds_importer_load($importer_id)) {
      $export['dependencies'] = array_merge($export['dependencies'], $importer
        ->dependencies());
    }
  }
}