You are here

function mimemail_user in Mime Mail 5

Same name and namespace in other branches
  1. 6 mimemail.module \mimemail_user()

Implementation of hook_user().

File

./mimemail.module, line 142
Component module for sending Mime-encoded emails.

Code

function mimemail_user($op, &$edit, &$user, $category = '') {
  if ($op == 'form' && $category == 'account') {
    $form = array();
    $form['mimemail'] = array(
      '#type' => 'fieldset',
      '#title' => t('Email settings'),
      '#weight' => 5,
      '#collapsible' => TRUE,
    );
    $form['mimemail']['mimemail_textonly'] = array(
      '#type' => 'checkbox',
      '#title' => t('Plaintext email only'),
      '#default_value' => $user->mimemail_textonly,
      '#description' => t('Check this option if you do not wish to receive email messages with graphics and styles'),
    );
    return $form;
  }
  return;
}