function multiple_email_message_part in Multiple E-mail Addresses 5
Same name and namespace in other branches
- 6 multiple_email.module \multiple_email_message_part()
 - 7 multiple_email.module \multiple_email_message_part()
 - 2.x multiple_email.module \multiple_email_message_part()
 
Returns the part of the specified email message based on site settings.
Parameters
string $part (subject or body):
string $type:
object $account:
object $email:
Return value
string
2 calls to multiple_email_message_part()
- multiple_email_expire_address in ./
multiple_email.module  - Removes the specified address from the user who added it and sends their primary email account a message notifying them about the expiration.
 - multiple_email_send_confirmation in ./
multiple_email.module  - Sends the confirmation email for the specified address to the specified user account.
 
File
- ./
multiple_email.module, line 543  - multiple_email module file
 
Code
function multiple_email_message_part($part, $type, $account, $email) {
  $func = "multiple_email_default_{$part}";
  $setting = variable_get("multiple_email_{$type}_{$part}", $func($type));
  return multiple_email_var_replace($setting, $account, $email);
}