function reroute_email_test_email_form in Reroute Email 7
Same name and namespace in other branches
- 6 reroute_email.admin.inc \reroute_email_test_email_form()
Form for sending test messages.
3 string references to 'reroute_email_test_email_form'
- RerouteEmailMailKeysTest::testMailKeysFilter in ./
reroute_email.test - Test Reroute Email with mail keys filter.
- reroute_email_mail in ./
reroute_email.module - Implements hook_mail().
- reroute_email_menu in ./
reroute_email.module - Implements hook_menu().
File
- ./
reroute_email.admin.inc, line 94 - Reroute Email admin configuration functions.
Code
function reroute_email_test_email_form() {
return array(
'addresses' => array(
'#type' => 'fieldset',
'#description' => t('Email addresses are not validated: any valid or invalid email address format could be submitted.'),
'to' => array(
'#type' => 'textfield',
'#title' => t('To'),
'#required' => TRUE,
),
'cc' => array(
'#type' => 'textfield',
'#title' => t('Cc'),
),
'bcc' => array(
'#type' => 'textfield',
'#title' => t('Bcc'),
),
),
'subject' => array(
'#type' => 'textfield',
'#title' => t('Subject'),
'#default_value' => t('Reroute Email Test'),
),
'body' => array(
'#type' => 'textarea',
'#title' => t('Body'),
'#default_value' => t('Reroute Email Body'),
),
'submit' => array(
'#type' => 'submit',
'#value' => t('Send email'),
),
);
}