public function FeedsNodeProcessor::configFormValidate in Feeds 6
Same name and namespace in other branches
- 7.2 plugins/FeedsNodeProcessor.inc \FeedsNodeProcessor::configFormValidate()
- 7 plugins/FeedsNodeProcessor.inc \FeedsNodeProcessor::configFormValidate()
Override parent::configFormValidate().
Overrides FeedsConfigurable::configFormValidate
File
- plugins/
FeedsNodeProcessor.inc, line 241 - Class definition of FeedsNodeProcessor.
Class
- FeedsNodeProcessor
- Creates nodes from feed items.
Code
public function configFormValidate(&$values) {
if ($author = user_load(array(
'name' => $values['author'],
))) {
$values['author'] = $author->uid;
}
else {
$values['author'] = 0;
}
}