You are here

public function MailhandlerFetcher::sourceForm in Mailhandler 7.2

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

Source form.

File

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

Class

MailhandlerFetcher
Implementation of FeedsFetcher.

Code

public function sourceForm($source_config) {
  $form = array();
  $form['source'] = array(
    '#type' => 'select',
    '#title' => t('Mailbox'),
    '#description' => t('Select a mailbox to use'),
    '#default_value' => isset($source_config['source']) ? $source_config['source'] : '',
    '#options' => _mailhandler_build_options(mailhandler_mailbox_load_all(FALSE), 'admin_title'),
  );
  return $form;
}