public function FarmAssetProcessor::configForm in farmOS 7
Override parent::configForm().
File
- modules/
farm/ farm_asset/ includes/ feeds/ plugins/ FarmAssetProcessor.inc, line 146 - Class definition of FarmAssetProcessor.
Class
- FarmAssetProcessor
- Creates farm assets from feed items.
Code
public function configForm(&$form_state) {
$form = parent::configForm($form_state);
$author = user_load($this->config['author']);
$form['author'] = array(
'#type' => 'textfield',
'#title' => t('Author'),
'#description' => t('Select the author of the assets to be created. If this is left empty, they will be assigned to the user running the import, or "anonymous" in the case of automated imports.'),
'#autocomplete_path' => 'user/autocomplete',
'#default_value' => empty($author->name) ? '' : check_plain($author->name),
);
$form['authorize'] = array(
'#type' => 'checkbox',
'#title' => t('Authorize'),
'#description' => t('Check that the author has permission to create the asset.'),
'#default_value' => $this->config['authorize'],
);
return $form;
}