function og_subgroups_remove_hierarchy in Subgroups for Organic groups 5
Same name and namespace in other branches
- 5.4 og_subgroups.module \og_subgroups_remove_hierarchy()
API function to remove a groups hierarchy.
Parameters
$node: The node object.
2 calls to og_subgroups_remove_hierarchy()
- og_subgroups_outline_submit in ./
og_subgroups.module - Handles subgroups form submissions.
- og_subgroups_workflow_ng_action_remove_hierarchy in ./
og_subgroups.workflow_ng.inc - Action: Remove group from hierarchy.
File
- ./
og_subgroups.module, line 118 - Maintains subgroups hierarchy created by the orgainc groups module.
Code
function og_subgroups_remove_hierarchy($node) {
db_query('DELETE FROM {og_subgroups} WHERE gid = %d', $node->nid);
}