You are here

function simple_mail_admin_form in Simple Mail 7

Simple Mail configuration form.

1 string reference to 'simple_mail_admin_form'
simple_mail_menu in ./simple_mail.module
Implements hook_menu().

File

includes/simple_mail.admin.inc, line 11
Simple Mail admin forms.

Code

function simple_mail_admin_form($form, &$form_state) {
  $form['simple_mail_queue_enabled'] = array(
    '#type' => 'select',
    '#title' => t('Simple Mail Queue'),
    '#description' => t('You can disable the queue functionality by setting this option to Disabled.'),
    '#default_value' => variable_get('simple_mail_queue_enabled', 1),
    '#options' => array(
      0 => t('Disabled'),
      1 => t('Enabled'),
    ),
  );
  $form['simple_mail_override'] = array(
    '#type' => 'textfield',
    '#title' => t('E-mail override address'),
    '#description' => t('Enter an e-mail address to have all system emails redirected to it. If empty, e-mail will be delivered normally, to the intended recipient.'),
    '#default_value' => variable_get('simple_mail_override', ''),
  );
  return system_settings_form($form);
}