contrib modules security updates
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user