function og_delete_subscription in Organic groups 5
Same name and namespace in other branches
- 5.8 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()
- 6 og.module \og_delete_subscription()
3 calls to og_delete_subscription()
- og_confirm_unsubscribe_submit in ./
og.module - Confirm og unsubscription submit handler
- og_deny in ./
og.module - og_workflow_ng_action_remove_user in ./
og_workflow_ng.inc - Action: Unsubscribe user from group.
File
- ./
og.module, line 455
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);
// Allow other modules to pass their data inside the $args.
module_invoke_all('og', 'user delete', $gid, $uid, $args);
}