function _pm_email_notify_show_sender in Privatemsg 7.2
Same name and namespace in other branches
- 6.2 pm_email_notify/pm_email_notify.module \_pm_email_notify_show_sender()
Checks if a message author wants his email address as a sender.
Parameters
$uid: The author's user ID.
Return value
bool Whether or not to use the author's email address.
2 calls to _pm_email_notify_show_sender()
- pm_email_notify_form_user_profile_form_alter in pm_email_notify/
pm_email_notify.module - Implements hook_form_FORM_ID_alter().
- pm_email_notify_send_mail in pm_email_notify/
pm_email_notify.module - Send a pm notification email to a recipient.
File
- pm_email_notify/
pm_email_notify.module, line 115 - Notifies users about new Private Messages via Email.
Code
function _pm_email_notify_show_sender($uid) {
// Either check the setting for this user or the global default.
$keys = array(
'user' => array(
$uid,
),
'global' => array(
0,
),
);
return privatemsg_get_setting('show_sender_mail', $keys);
}