function og_notifications_user_autosubscribe in Organic groups 5
Same name and namespace in other branches
- 5.8 og_notifications/og_notifications.module \og_notifications_user_autosubscribe()
- 5.3 og_notifications/og_notifications.module \og_notifications_user_autosubscribe()
- 5.7 og_notifications/og_notifications.module \og_notifications_user_autosubscribe()
- 6.2 modules/og_notifications/og_notifications.module \og_notifications_user_autosubscribe()
- 6 modules/og_notifications/og_notifications.module \og_notifications_user_autosubscribe()
Handle autosubscriptions for users when they join a group.
Parameters
Object $account: The user account object.
Integer $gid: The node ID of the group being subscribed to.
1 call to og_notifications_user_autosubscribe()
- og_notifications_og in og_notifications/
og_notifications.module - Implementation of hook_og().
File
- og_notifications/
og_notifications.module, line 392 - Subscriptions to content in groups.
Code
function og_notifications_user_autosubscribe($account, $gid) {
if (isset($account->og_notifications_autosubscribe) ? $account->og_notifications_autosubscribe : variable_get('og_notifications_autosubscribe', 1)) {
og_notifications_user_subscribe($account, $gid);
}
}