You are here

public function FeedsCommentProcessor::configFormValidate in Feeds Comment Processor 6

Same name and namespace in other branches
  1. 7 FeedsCommentProcessor.inc \FeedsCommentProcessor::configFormValidate()

Override parent::configFormValidate().

Overrides FeedsConfigurable::configFormValidate

File

./FeedsCommentProcessor.inc, line 222
Class definition of FeedsCommentProcessor.

Class

FeedsCommentProcessor
Creates comments from feed items.

Code

public function configFormValidate(&$values) {
  if ($author = user_load(array(
    'name' => $values['author'],
  ))) {
    $values['author'] = $author->uid;
  }
  else {
    $values['author'] = 0;
  }
}