function og_delete_subscription in Organic groups 5.7
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()
- 6.2 og.module \og_delete_subscription()
- 6 og.module \og_delete_subscription()
2 calls to og_delete_subscription()
- og_confirm_unsubscribe_submit in ./
og.module - Confirm og unsubscription submit handler
- og_deny in ./
og.module
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);
}