You are here

function htmlmail_test_form in HTML Mail 5

Same name and namespace in other branches
  1. 8.2 htmlmail.admin.inc \htmlmail_test_form()
  2. 6.2 htmlmail.admin.inc \htmlmail_test_form()
  3. 6 htmlmail.admin.inc \htmlmail_test_form()
  4. 7.2 htmlmail.admin.inc \htmlmail_test_form()
  5. 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.module, line 153
Send system emails in HTML

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;
}