You are here

public function FeedsNodeProcessor::configFormValidate in Feeds 7.2

Same name and namespace in other branches
  1. 6 plugins/FeedsNodeProcessor.inc \FeedsNodeProcessor::configFormValidate()
  2. 7 plugins/FeedsNodeProcessor.inc \FeedsNodeProcessor::configFormValidate()

Override parent::configFormValidate().

Overrides FeedsConfigurable::configFormValidate

File

plugins/FeedsNodeProcessor.inc, line 275
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;
  }
}