You are here

function pet_recipients_formatted in Previewable email templates 7

Same name and namespace in other branches
  1. 8.4 pet.module \pet_recipients_formatted()
  2. 8 pet.module \pet_recipients_formatted()
  3. 6 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 includes/pet.admin.inc
Multi-step form for previewing and sending a PET.

File

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

Code

function pet_recipients_formatted($recipients) {
  $output = '';
  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;
  }
}