You are here

function hook_feeds_data_processor_targets_alter in Feeds 6

Alter mapping targets for Data table entries. Use this hook to add additional target options to the mapping form of Data processor.

Related topics

1 invocation of hook_feeds_data_processor_targets_alter()
FeedsDataProcessor::getMappingTargets in plugins/FeedsDataProcessor.inc
Return available mapping targets.

File

./feeds.api.php, line 252
Documentation of Feeds hooks.

Code

function hook_feeds_data_processor_targets_alter(&$fields, $data_table) {
  if ($data_table == mymodule_base_table()) {
    $fields['mytable:category'] = array(
      'name' => t('Category'),
      'description' => t('One or more category terms.'),
    );
  }
}