You are here

function reroute_email_settings in Reroute Email 5

Same name and namespace in other branches
  1. 6 reroute_email.admin.inc \reroute_email_settings()
  2. 7 reroute_email.admin.inc \reroute_email_settings()

Menu Callback: Reroute Email admin configuration form.

1 string reference to 'reroute_email_settings'
reroute_email_menu in ./reroute_email.module
Implements hook_menu().

File

./reroute_email.module, line 33
Reroute Email module

Code

function reroute_email_settings() {
  $form[REROUTE_EMAIL_ADDRESS] = array(
    '#type' => 'textfield',
    '#title' => t('Email address'),
    '#required' => TRUE,
    '#default_value' => variable_get(REROUTE_EMAIL_ADDRESS, ini_get('sendmail_from')),
    '#size' => 35,
    '#description' => t('The email address to reroute all emails from the site to.'),
  );
  return system_settings_form($form);
}