You are here

function user_delete in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/user/user.module \user_delete()
  2. 5 modules/user/user.module \user_delete()
  3. 6 modules/user/user.module \user_delete()

Delete a user.

Parameters

$uid: A user ID.

7 calls to user_delete()
EntityCrudHookTestCase::testUserHooks in modules/simpletest/tests/entity_crud_hook_test.test
Tests hook invocations for CRUD operations on users.
FileFieldRevisionTestCase::testRevisions in modules/file/tests/file.test
Tests creating multiple revisions of a node and managing attached files.
ProfileCrudTestCase::testUserCRUD in modules/profile/profile.test
Test profile integration with user CRUD operations.
UserPasswordResetTestCase::testResetImpersonation in modules/user/user.test
Make sure that users cannot forge password reset URLs of other users.
UserPasswordResetTestCase::testUserPasswordReset in modules/user/user.test
Tests password reset functionality.

... See full list

4 string references to 'user_delete'
TriggerUserTokenTestCase::testUserTriggerTokenReplacement in modules/trigger/trigger.test
Tests a variety of token replacements in actions.
trigger_test_action_info in modules/trigger/tests/trigger_test.module
Implements hook_action_info().
trigger_user_cancel in modules/trigger/trigger.module
Implements hook_user_cancel().
trigger_user_delete in modules/trigger/trigger.module
Implements hook_user_delete().

File

modules/user/user.module, line 2593
Enables the user registration and login system.

Code

function user_delete($uid) {
  user_delete_multiple(array(
    $uid,
  ));
}