public function MailhandlerParser::configForm in Mailhandler 7.2
Same name and namespace in other branches
- 6.2 plugins/feeds/plugins/MailhandlerParser.class.php \MailhandlerParser::configForm()
Build configuration form.
File
- plugins/
feeds/ plugins/ MailhandlerParser.class.php, line 56 - MailhandlerParser class.
Class
- MailhandlerParser
- Parses an IMAP stream.
Code
public function configForm(&$form_state) {
$form = array();
ctools_include('plugins');
$form['authenticate_plugin'] = array(
'#type' => 'select',
'#title' => t('Authentication plugin'),
'#description' => t('Choose an authentication plugin'),
'#options' => _mailhandler_build_options(mailhandler_get_plugins('mailhandler', 'authenticate')),
'#default_value' => $this->config['authenticate_plugin'],
'#required' => FALSE,
);
$plugins = mailhandler_get_plugins('mailhandler', 'commands');
foreach ($plugins as $plugin_name => $plugin) {
if ($class = mailhandler_plugin_load_class('mailhandler', $plugin_name, 'commands', 'handler')) {
$class
->configForm($form, $form_state, $this->config);
}
}
return $form;
}