You are here

function og_notifications_user_autosubscribe_set in Organic groups 5.3

Same name and namespace in other branches
  1. 5.8 og_notifications/og_notifications.module \og_notifications_user_autosubscribe_set()
  2. 6.2 modules/og_notifications/og_notifications.module \og_notifications_user_autosubscribe_set()
  3. 6 modules/og_notifications/og_notifications.module \og_notifications_user_autosubscribe_set()

Retrieve autosubscription setting for a particular user.

Parameters

Integer $uid: The uid of the user.

Integer $autosubscribe: Autosubscription option: 0 or 1.

1 call to og_notifications_user_autosubscribe_set()
og_notifications_user in og_notifications/og_notifications.module
Implementation of hook_user(). Handle uid entry in the og_notifications table.

File

og_notifications/og_notifications.module, line 676
Provide notifications and messaging support for organic groups.

Code

function og_notifications_user_autosubscribe_set($uid, $autosubscribe) {
  return db_query("UPDATE {og_notifications} SET autosubscribe = %d WHERE uid = %d", $autosubscribe, $uid);
}