function htmlmail_user in HTML Mail 6.2
Implements hook_user().
File
- ./
htmlmail.module, line 142 - Sends system emails in HTML.
Code
function htmlmail_user($op, &$edit, $account, $category = NULL) {
if (!(user_access('choose htmlmail_plaintext') || user_access('administer users'))) {
return;
}
switch ("{$op}.{$category}") {
case 'form.account':
case 'register.':
return array(
'htmlmail' => array(
'#type' => 'fieldset',
'#title' => t('HTML Mail'),
'#collapsible' => TRUE,
'htmlmail_plaintext' => array(
'#type' => 'checkbox',
'#title' => t('Plaintext-only emails'),
'#default_value' => !empty($account->htmlmail_plaintext),
'#description' => t('The %htmlmail module can send emails with fonts, styles, and other HTML formatting. If you prefer to receive all your emails in unformatted plain text, select this option.', array(
'%htmlmail' => 'HTML Mail',
)),
),
),
);
default:
return;
}
}