You are here

function theme_signup_broadcast_sender_copy in Signup 5.2

Same name and namespace in other branches
  1. 6.2 theme/email.inc \theme_signup_broadcast_sender_copy()
  2. 6 theme/email.inc \theme_signup_broadcast_sender_copy()
  3. 7 theme/email.inc \theme_signup_broadcast_sender_copy()

Controls the body of the copy of the broadcast message sent to the sender.

Parameters

$raw_message: The raw message typed in by the sender with no tokens replaced.

$cooked_message: The message after all the tokens have been replaced.

Return value

The final text to put in the email body sent to the broadcast sender.

1 theme call to theme_signup_broadcast_sender_copy()
signup_broadcast_form_submit in ./signup.module
Send an email message to all those signed up to a node.

File

./signup.module, line 2769
The Signup module (http://drupal.org/project/signup) manages replies to nodes. In particular, it's good for event management. Signup supports sending reminder emails and automatically closing signups for nodes with a start time, via the Event…

Code

function theme_signup_broadcast_sender_copy($raw_message, $cooked_message) {
  $output = t('This is a copy of the signup broadcast you just sent.') . "\n";
  $output .= wordwrap(t('Here is the original text you entered, with none of the tokens replaced:'), 72) . "\n";
  $output .= "----------\n";
  $output .= $raw_message;
  $output .= "\n----------\n\n";
  $output .= wordwrap(t('Here is how the message that was sent to each user looked, with all of the tokens replaced (using your account for the user-related tokens):'), 72) . "\n";
  $output .= "----------\n";
  $output .= $cooked_message;
  $output .= "\n----------\n\n";
  return $output;
}