You are here

function disqus_feeds_set_target in Disqus 7

Mapping target callback.

1 string reference to 'disqus_feeds_set_target'
disqus_feeds_processor_targets_alter in ./disqus.module
Implements hook_feeds_processor_targets_alter().

File

./disqus.module, line 1022
The Disqus Drupal module.

Code

function disqus_feeds_set_target($source, $entity, $target, array $values, $mapping) {
  if (!is_array($values)) {
    $values = (array) $values;
  }
  if ($values) {
    $value = reset($values);
    $entity->disqus_status = $value;
  }
}