You are here

public function FeedsNodeProcessor::configFormValidate in Feeds 6

Same name and namespace in other branches
  1. 7.2 plugins/FeedsNodeProcessor.inc \FeedsNodeProcessor::configFormValidate()
  2. 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;
  }
}