function og_delete_subscription in Organic groups 6
Same name and namespace in other branches
- 5.8 og.module \og_delete_subscription()
- 5 og.module \og_delete_subscription()
- 5.2 og.module \og_delete_subscription()
- 5.3 og.module \og_delete_subscription()
- 5.7 og.module \og_delete_subscription()
- 6.2 og.module \og_delete_subscription()
4 calls to og_delete_subscription()
- og_confirm_unsubscribe_submit in ./
og.module - Confirm og unsubscription submit handler
- og_deny in ./
og.module - og_rules_action_remove_user in includes/
og.rules.inc - Action: Unsubscribe user from group.
- og_unsubscribe_user_action in modules/
og_actions/ og_actions.module - A configurable action to unsubscribe a user from a specific group.
File
- ./
og.module, line 724
Code
function og_delete_subscription($gid, $uid, $args = array()) {
$sql = "DELETE FROM {og_uid} WHERE nid = %d AND uid = %d";
db_query($sql, $gid, $uid);
module_invoke_all('og', 'user delete', $gid, $uid, $args);
}