You are here

function og_notifications_user_autosubscribe_set in Organic groups 6.2

Same name and namespace in other branches
  1. 5.8 og_notifications/og_notifications.module \og_notifications_user_autosubscribe_set()
  2. 5.3 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 modules/og_notifications/og_notifications.module
Implementation of hook_user(). Handle uid entry in the og_notifications table.

File

modules/og_notifications/og_notifications.module, line 450
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);
}