You are here

function feeds_normalize_targets in Feeds 7.2

Normalizes the target array.

Parameters

array &$targets: The Feeds target array.

1 call to feeds_normalize_targets()
feeds_feeds_processor_targets_alter in ./feeds.feeds.inc
Implements hook_feeds_processor_targets_alter().

File

./feeds.feeds.inc, line 39
Feeds hooks.

Code

function feeds_normalize_targets(array &$targets) {
  static $defaults = array(
    'description' => '',
    'summary_callbacks' => array(),
    'form_callbacks' => array(),
    'preprocess_callbacks' => array(),
    'unique_callbacks' => array(),
  );
  foreach (array_keys($targets) as $target) {
    $targets[$target] += $defaults;

    // Filter out any uncallable keys.
    _feeds_filter_callback_arrays($targets[$target]);
  }
}