public function FeedsUserProcessor::getMappingTargets in Feeds 6
Same name and namespace in other branches
- 7.2 plugins/FeedsUserProcessor.inc \FeedsUserProcessor::getMappingTargets()
- 7 plugins/FeedsUserProcessor.inc \FeedsUserProcessor::getMappingTargets()
Return available mapping targets.
Overrides FeedsProcessor::getMappingTargets
File
- plugins/
FeedsUserProcessor.inc, line 167 - FeedsUserProcessor class.
Class
- FeedsUserProcessor
- Feeds processor plugin. Create users from feed items.
Code
public function getMappingTargets() {
$targets = array(
'name' => array(
'name' => t('User name'),
'description' => t('Name of the user.'),
'optional_unique' => TRUE,
),
'mail' => array(
'name' => t('Email address'),
'description' => t('Email address of the user.'),
'optional_unique' => TRUE,
),
'created' => array(
'name' => t('Created date'),
'description' => t('The created (e. g. joined) data of the user.'),
),
'pass' => array(
'name' => t('Unencrypted Password'),
'description' => t('The unencrypted user password.'),
),
);
if (module_exists('openid')) {
$targets['openid'] = array(
'name' => t('OpenID identifier'),
'description' => t('The OpenID identifier of the user. <strong>CAUTION:</strong> Use only for migration purposes, misconfiguration of the OpenID identifier can lead to severe security breaches like users gaining access to accounts other than their own.'),
'optional_unique' => TRUE,
);
}
// Let other modules expose mapping targets.
self::loadMappers();
drupal_alter('feeds_user_processor_targets', $targets);
return $targets;
}