You are here

function profile2_delete_multiple in Profile 2 7

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

Delete multiple profiles.

Parameters

$pids: An array of profile IDs.

4 calls to profile2_delete_multiple()
Profile2CRUDTestCase::testCRUD in ./profile2.test
Tests CRUD for a profile related to a user and one unrelated to a user.
profile2_generate_form_submit in ./profile2.devel.inc
Submit callback for profile2_generate_form(). Generates profiles for users.
profile2_profile2_type_delete in ./profile2.module
Implements hook_profile2_type_delete()
profile2_update_7104 in ./profile2.install
Remove duplicate profile records in batches of 50, and add unique key on type + uid.

File

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

Code

function profile2_delete_multiple(array $pids) {
  entity_get_controller('profile2')
    ->delete($pids);
}