function htmlmail_form_user_profile_form_alter in HTML Mail 7
Same name and namespace in other branches
- 8.2 htmlmail.module \htmlmail_form_user_profile_form_alter()
- 7.2 htmlmail.module \htmlmail_form_user_profile_form_alter()
Implements hook_form_FORM_ID_alter().
File
- ./
htmlmail.module, line 110 - Send system emails in HTML.
Code
function htmlmail_form_user_profile_form_alter(&$form, &$form_state) {
if ($form['#user_category'] == 'account') {
$account = $form['#user'];
$form['htmlmail'] = array(
'#type' => 'fieldset',
'#title' => t('HTML Mail'),
'#collapsible' => TRUE,
);
$form['htmlmail']['htmlmail_plaintext'] = array(
'#type' => 'checkbox',
'#title' => t('Plaintext-only emails'),
'#default_value' => empty($account->data['htmlmail_plaintext']) ? FALSE : 1,
'#description' => t('The %m module can send emails with fonts, styles, and other HTML formatting. If you prefer to receive all your emails in plain text, select this option.', array(
'%m' => 'HTML Mail',
)),
);
}
}