You are here

function comment_notify_get_user_comment_notify_preference in Comment Notify 7

Get a user's default preference for comment notification.

Parameters

int $uid:

Return value

int

2 calls to comment_notify_get_user_comment_notify_preference()
comment_notify_comment_insert in ./comment_notify.module
Implements hook_comment_insert().
comment_notify_form_comment_form_alter in ./comment_notify.module
Implements hook_form_FORM_ID_alter() for comment_form().

File

./comment_notify.inc, line 75
Contains functions which utilize the database and other internal helpers.

Code

function comment_notify_get_user_comment_notify_preference($uid) {
  $setting = comment_notify_get_user_notification_setting($uid);
  if (!$setting) {
    $setting = comment_notify_get_default_notification_setting();
  }
  return $setting->comment_notify;
}