function og_feeds_node_processor_targets_alter in Feeds 7
Same name and namespace in other branches
- 6 mappers/og.inc \og_feeds_node_processor_targets_alter()
Implements hook_feeds_node_processor_targets_alter().
File
- mappers/
og.inc, line 40 - On behalf implementation of mapping hooks for Organic Groups module.
Code
function og_feeds_node_processor_targets_alter(&$targets, $content_type) {
if (in_array($content_type, og_get_types('group_post'))) {
$targets['og_groups'] = array(
'name' => t('Organic group(s)'),
'callback' => 'og_feeds_set_target',
'description' => t('One or more organic groups that the node is part of.'),
);
}
}