DMail Milestone 1.0
Drupal Mail Client
|
Go to the source code of this file.
Functions | |
dmail_settings () |
Administration forms.
Definition in file dmail.admin.inc.
dmail_settings | ( | ) |
Callback for admin/settings/dmail.
Definition at line 11 of file dmail.admin.inc.
{ $form['dmail'] = array( '#type' => 'fieldset', '#title' => t('Email Client'), '#collapsible' => FALSE, '#weight' => -1, ); $form['dmail']['dmail_default_host'] = array( '#type' => 'textfield', '#title' => t('Default Email Host'), '#description' => t('This is the default value for all users of the Email Client provided by your server. The user can change the value with each individual email identity.'), '#default_value' => variable_get('dmail_default_host', DMAIL_DEFAULT_HOST), ); $form['dmail']['dmail_default_port'] = array( '#type' => 'textfield', '#title' => t('Default Email Port'), '#description' => t('This is the default value for all users of the Email Client and should represent the port the Default Email Host uses for its IMAP services. The user can change the value with each individual email identity.'), '#default_value' => variable_get('dmail_default_port', DMAIL_DEFAULT_PORT), ); $form['dmail']['dmail_default_service'] = array( '#type' => 'select', '#title' => t('Default Service'), '#description' => t('This is the default value for the service the user will be authentication to. The user can change the value with each individual email identity.'), '#default_value' => variable_get('dmail_default_service', DMAIL_DEFAULT_SERVICE), '#options' => array('imap' => 'imap', 'pop3' => 'pop3', 'nntp' => 'nntp'), ); $form['dmail']['dmail_default_inbox'] = array( '#type' => 'textfield', '#title' => t('Default Inbox'), '#description' => t('This is the default value for the inbox mailbox of your email server system and is typically INBOX. The user can change the value with each individual email identity.'), '#default_value' => variable_get('dmail_default_inbox', DMAIL_DEFAULT_INBOX), ); $form['dmail']['dmail_default_delim'] = array( '#type' => 'textfield', '#title' => t('Default Mailbox Delimiter'), '#description' => t('This is the default value for the mailbox delimiter of your email server system and is typically a period (.) or a slash (/). The user can change the value with each individual email identity.'), '#size' => 1, '#maxlength' => 1, '#default_value' => variable_get('dmail_default_delim', DMAIL_DEFAULT_DELIM), ); $form['dmail']['dmail_default_encrypt'] = array( '#type' => 'select', '#title' => t('Default Encryption Type'), '#description' => t('This is the default value for the encryption type. The user can change the value with each individual identity.'), '#default_value' => variable_get('dmail_default_encrypt', DMAIL_DEFAULT_ENCRYPT), '#options' => array('none' => 'none', 'tls' => 'tls', 'ssl' => 'ssl'), ); $form['dmail']['dmail_default_validate_cert'] = array( '#type' => 'select', '#title' => t('Default Validate Certificates'), '#description' => t('This is the default value for certificate validation. The user can change the value with each individual identity.'), '#default_value' => variable_get('dmail_default_validate_cert', DMAIL_DEFAULT_VALIDATE_CERT), '#options' => array('yes' => t('Yes'), 'no' => t('No')), ); $form['dmail']['dmail_default_expunge'] = array( '#type' => 'select', '#title' => t('Default Expunge On Close'), '#description' => t('This is the default value for expunge on service connection close; note that the connection may close for reasons other than exiting or logging off. The user can change the value with each individual identity.'), '#default_value' => variable_get('dmail_default_expunge', DMAIL_DEFAULT_EXPUNGE), '#options' => array('yes' => t('Yes'), 'no' => t('No')), ); $form['dmail']['dmail_default_readonly'] = array( '#type' => 'select', '#title' => t('Default Readonly'), '#description' => t('This is the default value for read only mode and is usally set only for debugging purposes. The user can change the value with each individual identity.'), '#default_value' => variable_get('dmail_default_readonly', DMAIL_DEFAULT_READONLY), '#options' => array('yes' => t('Yes'), 'no' => t('No')), ); $form['dmail']['dmail_default_move_deleted'] = array( '#type' => 'select', '#title' => t('Default Move Deleted'), '#description' => t('This is the default value for whether or not to move an item flagged as deleted to the Delete folder. The user can change the value with each individual identity.'), '#default_value' => variable_get('dmail_default_move_deleted', DMAIL_DEFAULT_MOVE_DELETED), '#options' => array('yes' => t('Yes'), 'no' => t('No')), ); $form['dmail']['dmail_default_check_mail_freq'] = array( '#type' => 'select', '#title' => t('Check mail frequency'), '#description' => t('How often should the identities be checked for new mail?'), '#default_value' => variable_get('dmail_default_check_mail_freq', DMAIL_DEFAULT_CHECK_MAIL_FREQ), '#options' => array(1 => t('Every minute'), 5 => t('Every 5 minutes'), 10 => t('Every 10 minutes'), 15 => t('Every 15 minutes'), 30 => t('Every 30 minutes'), 60 => t('Every hour'), 120 => t('Every 2 hours'), 240 => t('Every 4 hours'), 360 => t('Every 6 hours'), 480 => t('Every 8 hours'), 720 => t('Every 12 hours'), 1440 => t('Once a day')), ); return system_settings_form($form); }