function engagements_imap_settings_form
Search API
7.x engagements.module | engagements_imap_settings_form() |
6.x engagements.module | engagements_imap_settings_form() |
Configure the imap settings used by Engagements
File
- modules/
engagements/ engagements.module, line 854 - This is the primary module file for the engagements module.
Code
function engagements_imap_settings_form()
{
$form = array();
$form ['mark_top'] = array(
'value' => '<p>Configure the connection to your IMAP server here.</p>',
);
$form ['imap_host'] = array(
'type' => 'textfield',
'label' => t('Host'),
'value' => variable_get('imap_host', ''),
'description' => 'Ex: mail.example.com',
);
$form ['imap_port'] = array(
'type' => 'textfield',
'label' => t('Port'),
'value' => variable_get('imap_port', ''),
'size' => 10,
'description' => 'Ex: 143, 993',
);
$form ['imap_secure'] = array(
'type' => 'select',
'label' => t('Security'),
'value' => variable_get('imap_secure', ''),
'options' => array('none' => 'none', 'tls' => 'TLS', 'ssl' => 'SSL'),
'description' => 'Ex: TLS',
);
$form ['imap_username'] = array(
'type' => 'textfield',
'label' => t('Username'),
'value' => variable_get('imap_username', ''),
'description' => '',
);
$form ['imap_password'] = array(
'type' => 'textfield',
'label' => t('Password'),
'value' => variable_get('imap_password', ''),
'description' => t('Note: The password will be stored within the database, in the Variables table.
Make sure you take the necessary precautions to ensure the security of your database.'),
);
// TODO: folder names to look in?
// TODO: other settings on deleting messages once read, etc?
return $form;
}