You are here

function hook_og_membership_presave in Organic groups 7.2

Same name and namespace in other branches
  1. 7 og.api.php \hook_og_membership_presave()

Acts on a OG membership being inserted or updated.

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

Parameters

OgMembership $og_membership: The OG membership that is being inserted or updated.

See also

hook_entity_presave()

File

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

Code

function hook_og_membership_presave(OgMembership $og_membership) {
  $og_membership->name = 'foo';
}