You are here

function og_feeds_node_processor_targets_alter in Feeds 6

Same name and namespace in other branches
  1. 7 mappers/og.inc \og_feeds_node_processor_targets_alter()

Implementation of 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.'),
    );
  }
}