function hook_group_insert in Organic groups 7
Responds when a OG group is inserted.
This hook is invoked after the OG group is inserted into the database.
Parameters
OgGroup $og_group: The OG group that is being inserted.
See also
File
- ./
og.api.php, line 245 - Hooks provided by the Organic groups module.
Code
function hook_group_insert(OgGroup $og_group) {
db_insert('mytable')
->fields(array(
'id' => entity_id('group', $og_group),
'extra' => print_r($og_group, TRUE),
))
->execute();
}