function mimemail_user in Mime Mail 6
Same name and namespace in other branches
- 5 mimemail.module \mimemail_user()
Implements hook_user().
File
- ./
mimemail.module, line 50 - Component module for sending MIME-encoded e-mails.
Code
function mimemail_user($op, &$edit, &$account, $category = '') {
if ($op == 'form' && $category == 'account') {
$form = array();
$form['mimemail'] = array(
'#type' => 'fieldset',
'#title' => t('Email settings'),
'#weight' => 5,
'#collapsible' => TRUE,
'#access' => user_access('edit mimemail user settings'),
);
$form['mimemail']['mimemail_textonly'] = array(
'#type' => 'checkbox',
'#title' => t('Plaintext email only'),
'#default_value' => isset($account->mimemail_textonly) ? $account->mimemail_textonly : 0,
'#description' => t('Check this option if you do not wish to receive email messages with graphics and styles'),
);
return $form;
}
return;
}