You are here

function hook_group_presave in Organic groups 7

Acts on a OG group being inserted or updated.

This hook is invoked before the OG group is saved to the database.

Parameters

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

See also

hook_entity_presave()

File

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

Code

function hook_group_presave(OgGroup $og_group) {
  $og_group->name = 'foo';
}