function hook_profile2_type_update in Profile 2 7.2
Same name and namespace in other branches
- 7 profile2.api.php \hook_profile2_type_update()
Respond to updates to a profile.
This hook is invoked after the profile type has been updated in the database.
Parameters
$type: The profile type that is being updated.
2 functions implement hook_profile2_type_update()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- profile2_i18n_profile2_type_update in contrib/
profile2_i18n.module - Implements hook_profile2_type_update().
- profile2_profile2_type_update in ./
profile2.module - Implements hook_profile2_type_update().
File
- ./
profile2.api.php, line 204 - 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_update($type) {
db_update('mytable')
->fields(array(
'extra' => $type->extra,
))
->condition('id', $type->id)
->execute();
}