You are here

public function FarmAssetProcessor::configFormValidate in farmOS 7

Override parent::configFormValidate().

File

modules/farm/farm_asset/includes/feeds/plugins/FarmAssetProcessor.inc, line 169
Class definition of FarmAssetProcessor.

Class

FarmAssetProcessor
Creates farm assets from feed items.

Code

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