function og_notifications_user_autosubscribe_set in Organic groups 6
Same name and namespace in other branches
- 5.8 og_notifications/og_notifications.module \og_notifications_user_autosubscribe_set()
- 5.3 og_notifications/og_notifications.module \og_notifications_user_autosubscribe_set()
- 6.2 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 604 - 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);
}