You are here

public function FeedsCommerceProductProcessor::configFormValidate in Commerce Feeds 7

Override parent::configFormValidate().

File

plugins/FeedsCommerceProductProcessor.inc, line 135
Class definition of FeedsCommerceProductProcessor.

Class

FeedsCommerceProductProcessor
Creates products from feed items.

Code

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