You are here

function mimemail_user_view in Mime Mail 7

Implements hook_user_view().

File

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

Code

function mimemail_user_view($account, $view_mode, $langcode) {
  $account->content['mimemail'] = array(
    '#type' => 'user_profile_category',
    '#title' => t('Email'),
    '#access' => user_access('view mimemail user settings'),
  );
  $account->content['mimemail']['textonly'] = array(
    '#type' => 'user_profile_item',
    '#title' => t('Plaintext email only'),
    '#markup' => empty($account->data['mimemail_textonly']) ? t('No') : t('Yes'),
  );
}