You are here

function _signup_get_email in Signup 6.2

Same name and namespace in other branches
  1. 6 signup.module \_signup_get_email()
  2. 7 signup.module \_signup_get_email()

Get the email address to use for a given signup.

Parameters

$signup: An object containing signup data, in particular 'mail' and 'anon_mail'.

Return value

The appropriate email address to use to contact the signed up user.

5 calls to _signup_get_email()
signup_send_broadcast in includes/broadcast.inc
Send an email message to users who have signed up to a node.
signup_send_confirmation_mail in ./signup.module
Send the signup comfirmation e-mail to a user who signs up for something.
signup_send_forwarding_mail in ./signup.module
Send the signup forwarding mail when a user signs up for something.
_signup_cron_send_reminders in includes/cron.inc
Helper function that sends cron-based reminder e-mails.
_signup_get_email_tokens in ./signup.module
Helper function that returns an array of tokens for signup emails.

File

./signup.module, line 1600
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 _signup_get_email($signup) {
  return !empty($signup->anon_mail) ? $signup->anon_mail : $signup->mail;
}