You are here

function _invite_notifications_user_messages in Invite 7.4

Helper function to retrieve notifications for user.

Parameters

object $user: User.

Return value

bool Return bool with result.

1 call to _invite_notifications_user_messages()
invite_notifications_invite_withdraw in modules/invite_notifications/invite_notifications.module
Invite Notifications.

File

modules/invite_notifications/invite_notifications.module, line 219
Main file for the Invite Notifications.

Code

function _invite_notifications_user_messages($user) {
  $result = db_query('SELECT * FROM {invite_notifications} WHERE uid = :uid and status = :status', array(
    ':uid' => $user->uid,
    ':status' => 1,
  ))
    ->fetchAll();
  return !empty($result) ? $result : FALSE;
}