You are here

function pet_recipients_formatted in Previewable email templates 6

Same name and namespace in other branches
  1. 8.4 pet.module \pet_recipients_formatted()
  2. 8 pet.module \pet_recipients_formatted()
  3. 7 includes/pet.admin.inc \pet_recipients_formatted()

Return formatted list of PET recipients for preview display.

1 call to pet_recipients_formatted()
pet_user_form in ./pet.admin.inc
Multi-step PET form.

File

./pet.admin.inc, line 581
Contains administrative pages for creating, editing, and deleting previewable email templates (PETs).

Code

function pet_recipients_formatted($recipients) {
  if (is_array($recipients)) {
    foreach ($recipients as $recipient) {
      $output .= $recipient['mail'];
      $output .= $recipient['uid'] ? t(' (user @uid)', array(
        '@uid' => $recipient['uid'],
      )) : t(' (no user id)');
      $output .= "\n";
    }
    return $output;
  }
}