You are here

function hook_profile2_presave in Profile 2 7.2

Same name and namespace in other branches
  1. 7 profile2.api.php \hook_profile2_presave()

Act on a profile being inserted or updated.

This hook is invoked before the profile is saved to the database.

Parameters

$profile: The profile that is being inserted or updated.

See also

hook_entity_presave()

File

./profile2.api.php, line 62
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function hook_profile2_presave($profile) {
  $profile->extra = 'foo';
}