function profile2_profile2_delete in Profile 2 7
Same name and namespace in other branches
- 7.2 profile2.module \profile2_profile2_delete()
Implements hook_profile2_delete().
File
- ./
profile2.module, line 294 - Support for configurable user profiles.
Code
function profile2_profile2_delete($profile) {
// Clear the static cache from profile2_load_by_user().
$cache =& drupal_static('profile2_load_by_user', array());
unset($cache[$profile->uid][$profile->type]);
}