You are here

public function MailhandlerFetcher::configForm in Mailhandler 6.2

Same name and namespace in other branches
  1. 7.2 plugins/feeds/plugins/MailhandlerFetcher.class.php \MailhandlerFetcher::configForm()

Config form.

Overrides FeedsConfigurable::configForm

File

plugins/feeds/plugins/MailhandlerFetcher.class.php, line 84
Checks for new messages in a mailbox (IMAP, POP3, etc...).

Class

MailhandlerFetcher

Code

public function configForm(&$form_state) {
  $form = array();

  // Select message filter (to differentiate nodes/comments/etc)
  $form['filter'] = array(
    '#type' => 'select',
    '#title' => t('Message filter'),
    '#description' => t('Select which types of messages to import. This is a heuristic filter, and may fail in some scenarios. For instance, messages from a mailing list will almost always look like comments. Thus, the safest setting is <em>all</em>.'),
    '#default_value' => $this->config['filter'],
    '#options' => _mailhandler_build_options(mailhandler_get_plugins('mailhandler', 'filters')),
  );
  return $form;
}