function _pm_email_notify_only_user in Privatemsg 7.2
Same name and namespace in other branches
- 6.2 pm_email_notify/pm_email_notify.module \_pm_email_notify_only_user()
Checks if a user should only be notified when addressed directly.
Parameters
$uid: User ID.
TRUE if notifications should only be sent for directly addressed: recipients.
Return value
bool The effective setting for this user.
2 calls to _pm_email_notify_only_user()
- 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_privatemsg_message_recipient_changed in pm_email_notify/
pm_email_notify.module - Implements hook_privatemsg_message_recipient_changed().
File
- pm_email_notify/
pm_email_notify.module, line 97 - Notifies users about new Private Messages via Email.
Code
function _pm_email_notify_only_user($uid) {
// Either check the setting for this user or the global default.
$keys = array(
'user' => array(
$uid,
),
'global' => array(
0,
),
);
return privatemsg_get_setting('email_notify_only_user', $keys);
}