function reroute_email_settings in Reroute Email 6
Same name and namespace in other branches
- 5 reroute_email.module \reroute_email_settings()
- 7 reroute_email.admin.inc \reroute_email_settings()
Settings form.
1 string reference to 'reroute_email_settings'
- reroute_email_menu in ./
reroute_email.module - Implements hook_menu().
File
- ./
reroute_email.admin.inc, line 11 - Reroute Email admin configuration functions.
Code
function reroute_email_settings() {
$form[REROUTE_EMAIL_ENABLE] = array(
'#type' => 'checkbox',
'#title' => t('Enable rerouting'),
'#default_value' => variable_get(REROUTE_EMAIL_ENABLE, 0),
'#description' => t('Check this box if you want to enable email rerouting. Uncheck to disable rerouting.'),
);
$form[REROUTE_EMAIL_ADDRESS] = array(
'#type' => 'textfield',
'#title' => t('Email addresses'),
'#default_value' => variable_get(REROUTE_EMAIL_ADDRESS, variable_get('site_mail', ini_get('sendmail_from'))),
'#description' => t('Provide a space, comma, or semicolon-delimited list of email addresses to pass through. Every destination email address which is not on this list will be rerouted to the first address on the list.'),
);
$form[REROUTE_EMAIL_ENABLE_MESSAGE] = array(
'#type' => 'checkbox',
'#title' => t('Show rerouting description in mail body'),
'#default_value' => variable_get(REROUTE_EMAIL_ENABLE_MESSAGE, 1),
'#description' => t('Check this box if you want a message to be inserted into the email body when the mail is being rerouted. Otherwise, SMTP headers will be used to describe the rerouting. If sending rich-text email, leave this unchecked so that the body of the email will not be disturbed.'),
);
return system_settings_form($form);
}