$value) { $text .= t('Header [@name]: @value', array('@name' => $name, '@value' => $value)) . "
"; } // NOTE output is escaped. Simpletest assertion may lead to false // results if special html characters (e.g. &, <, > ) are used in // 'to' name or subject. $text .= t('To: @to', array('@to' => $message['to'])) . "
"; $text .= t('Subject: @subject', array('@subject' => $message['subject'])) . "
"; $text .= t('Body: @body', array('@body' => $message['body'])); drupal_set_message($text, 'status'); } }