You are here

function select_registration_roles_mail in Select registration roles 8

Implements hook_mail().

File

./select_registration_roles.module, line 94

Code

function select_registration_roles_mail($key, &$message, $params) {
  switch ($key) {
    case 'registration':

      // note: data can be passed to this function in the $params array.
      $output = t("Name: @name", array(
        '@name' => $params['username'],
      ));
      $output .= t("has requested a role that need your confirmation.");
      $output .= t("Role(s) that need your approvals:");
      $message['subject'] = t('New Roles Request');
      $message['body'][] = $output . '.';
  }
}