function data_taxonomy_feeds_data_processor_targets_alter in Data 6
Implementation of hook_feeds_data_processor_targets_alter().
File
- data_taxonomy/
data_taxonomy.module, line 64 - Hooks and API functions for Data Node module.
Code
function data_taxonomy_feeds_data_processor_targets_alter(&$fields, $table_name) {
if ($info = data_taxonomy_get_info($table_name)) {
foreach ($info['vocabularies'] as $vid) {
$vocabulary = data_taxonomy_get_vocabulary($vid);
$fields['data_taxonomy:' . $vid] = array(
'name' => t('Taxonomy: @vocabulary', array(
"@vocabulary" => $vocabulary->name,
)),
'description' => t('Map to taxonomy terms of @vocabulary vocabulary.', array(
"@vocabulary" => $vocabulary->name,
)),
);
}
}
}