function hook_group_delete in Organic groups 7
Responds to OG group deletion.
This hook is invoked after the OG group has been removed from the database.
Parameters
OgGroup $og_group: The OG group that is being deleted.
See also
File
- ./
og.api.php, line 295 - Hooks provided by the Organic groups module.
Code
function hook_group_delete(OgGroup $og_group) {
db_delete('mytable')
->condition('pid', entity_id('group', $og_group))
->execute();
}