contrib modules security updates

This commit is contained in:
Bachir Soussi Chiadmi
2016-10-13 12:10:40 +02:00
parent ffd758abc9
commit 747127f643
732 changed files with 67976 additions and 23207 deletions

View File

@@ -2,16 +2,17 @@
/**
* @file
* On behalf implementation of Feeds mapping API for user profiles.
* On behalf implementation of Feeds mapping API for profile.module.
*/
/**
* Implements hook_feeds_processor_target_alter().
* Implements hook_feeds_processor_targets().
*/
function profile_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_name) {
function profile_feeds_processor_targets($entity_type, $bundle_name) {
$targets = array();
if ($entity_type != 'user') {
return;
return $targets;
}
$categories = profile_user_categories();
@@ -25,11 +26,13 @@ function profile_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_
);
}
}
return $targets;
}
/**
* Set the user profile target after import.
*/
function profile_feeds_set_target($source, $entity, $target, $value, $mapping) {
$entity->$target = $value;
function profile_feeds_set_target(FeedsSource $source, $entity, $target, array $values) {
$entity->$target = reset($values);
}