protected function FeedsUserProcessor::map in Feeds 6
Same name and namespace in other branches
- 7.2 plugins/FeedsUserProcessor.inc \FeedsUserProcessor::map()
- 7 plugins/FeedsUserProcessor.inc \FeedsUserProcessor::map()
Execute mapping on an item.
Overrides FeedsProcessor::map
1 call to FeedsUserProcessor::map()
- FeedsUserProcessor::process in plugins/
FeedsUserProcessor.inc - Implementation of 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, $target_account = NULL) {
// Prepare user account object.
if (empty($target_account)) {
$target_account = new stdClass();
}
$target_account->uid = 0;
$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);
}