You are here

function profile2_delete in Profile 2 7

Same name and namespace in other branches
  1. 7.2 profile2.module \profile2_delete()

Deletes a profile.

2 calls to profile2_delete()
Profile2CRUDTestCase::testCRUD in ./profile2.test
Tests CRUD for a profile related to a user and one unrelated to a user.
profile2_user_delete in ./profile2.module
Implements hook_user_delete().

File

./profile2.module, line 303
Support for configurable user profiles.

Code

function profile2_delete(Profile $profile) {
  $profile
    ->delete();
}