You are here

function subuser_mail_alter in Subuser 6

Implements hook_mail_alter().

File

./subuser.module, line 122
Allows users of a particular role to create sub user account in another role.

Code

function subuser_mail_alter(&$message) {
  if (variable_get('subuser_cc_parent', 0)) {
    $parent_uid = subuser_get_parent($message['params']['account']->uid);
    $parent = user_load($parent_uid);
    $message['headers']['cc'] = $parent->mail;
  }
}