diff -Nuar form_mail/form_mail.module form_mail.wrk/form_mail.module --- form_mail/form_mail.module 2006-06-27 16:37:49.000000000 -0400 +++ form_mail.wrk/form_mail.module 2007-01-02 16:52:59.192966312 -0500 @@ -70,9 +70,26 @@ } function form_mail_settings() { - $output = form_textfield(t("Email recipient"), "form_mail_email", variable_get("form_mail_email", ""), 80, 300, t("The email address which should receive all form submissions when not otherwise stated in the form.")); - $output .= form_checkbox(t('Allow custom recipient'), 'form_mail_custom_to', 1, variable_get("form_mail_custom_to", 0), t("Whether to allow setting the recipient of the email from the form.")); - return $output; + + $form["form_mail_email"] = array( + '#type' => 'textfield', + '#title' => t("Email recipient"), + '#default_value' => variable_get + ("form_mail_email", ""), + '#size' => 80, + '#maxlength' => 300, + '#description' => t("The email address which should receive all form submissions when not otherwise stated in the form."), + ); + + $form['form_mail_custom_to'] = array( + '#type' => 'checkbox', + '#title' => t('Allow custom recipient'), + '#return_value' => 1, + '#default_value' => variable_get("form_mail_custom_to", 0), + '#description' => t("Whether to allow setting the recipient of the email from the form."), + ); + + return $form; } ?>