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