You are here

function hook_group_update in Organic groups 7

Responds to a OG group being updated.

This hook is invoked after the OG group has been updated in the database.

Parameters

OgGroup $og_group: The OG group that is being updated.

See also

hook_entity_update()

File

./og.api.php, line 278
Hooks provided by the Organic groups module.

Code

function hook_group_update(OgGroup $og_group) {
  db_update('mytable')
    ->fields(array(
    'extra' => print_r($og_group, TRUE),
  ))
    ->condition('id', entity_id('group', $og_group))
    ->execute();
}