function hook_profile2_type_presave in Profile 2 7.2
Same name and namespace in other branches
- 7 profile2.api.php \hook_profile2_type_presave()
Act on a profile type being inserted or updated.
This hook is invoked before the profile type is saved to the database.
Parameters
$type: The profile type that is being inserted or updated.
File
- ./
profile2.api.php, line 192 - 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_type_presave($type) {
$type->extra = 'foo';
}