function htmlmail_test_form in HTML Mail 6
Same name and namespace in other branches
- 8.2 htmlmail.admin.inc \htmlmail_test_form()
- 5 htmlmail.module \htmlmail_test_form()
- 6.2 htmlmail.admin.inc \htmlmail_test_form()
- 7.2 htmlmail.admin.inc \htmlmail_test_form()
- 7 htmlmail.admin.inc \htmlmail_test_form()
1 string reference to 'htmlmail_test_form'
- htmlmail_menu in ./
htmlmail.module - Implementation of hook_menu().
File
- ./
htmlmail.admin.inc, line 111 - Admin forms for HTML Mail
Code
function htmlmail_test_form($form_values = NULL) {
$defaults = variable_get('htmlmail_test', array());
$form['to'] = array(
'#type' => 'textfield',
'#title' => t('To'),
'#default_value' => $defaults['to'],
'#maxlength' => 128,
'#required' => TRUE,
);
$form['subject'] = array(
'#type' => 'textfield',
'#title' => t('Subject'),
'#default_value' => $defaults['subject'],
'#maxlength' => 128,
'#required' => TRUE,
);
$form['body'] = array(
'#type' => 'textarea',
'#title' => t('Body'),
'#rows' => 20,
'#default_value' => $defaults['body'],
'#required' => TRUE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
return $form;
}