protected function FeedsUserProcessor::map in Feeds 7
Same name and namespace in other branches
- 6 plugins/FeedsUserProcessor.inc \FeedsUserProcessor::map()
- 7.2 plugins/FeedsUserProcessor.inc \FeedsUserProcessor::map()
Execute mapping on an item.
Overrides FeedsProcessor::map
1 call to FeedsUserProcessor::map()
- FeedsUserProcessor::process in plugins/
FeedsUserProcessor.inc - Implements FeedsProcessor::process().
File
- plugins/
FeedsUserProcessor.inc, line 96 - FeedsUserProcessor class.
Class
- FeedsUserProcessor
- Feeds processor plugin. Create users from feed items.
Code
protected function map(FeedsImportBatch $batch) {
// Prepare term object.
$target_account = new stdClass();
$target_account->uid = 0;
$target_account->entity_type = 'user';
$target_account->roles = array_filter($this->config['roles']);
$target_account->status = $this->config['status'];
// Have parent class do the iterating.
return parent::map($batch, $target_account);
}