public function MailhandlerFetcher::configForm in Mailhandler 7.2
Same name and namespace in other branches
- 6.2 plugins/feeds/plugins/MailhandlerFetcher.class.php \MailhandlerFetcher::configForm()
Config form.
File
- plugins/
feeds/ plugins/ MailhandlerFetcher.class.php, line 86 - Checks for new messages in a mailbox (IMAP, POP3, etc...).
Class
- MailhandlerFetcher
- Implementation of FeedsFetcher.
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;
}