You are here

public function LogProcessor::configForm in Log entity 7

Override parent::configForm().

File

includes/feeds/plugins/LogProcessor.inc, line 146
Class definition of LogProcessor.

Class

LogProcessor
Creates logs 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 logs 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 log.'),
    '#default_value' => $this->config['authorize'],
  );
  return $form;
}