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

Delete a user.

Parameters

$uid: A user ID.

9 calls to user_delete()
CommentAuthorDeletionTestCase::testAuthorDeletion in modules/comment/comment.test
Tests that comments are correctly deleted when their author is deleted.
CommentAuthorDeletionTestCase::testAuthorDeletionCommentModuleDisabled in modules/comment/comment.test
Test comment author deletion while the comment module is disabled.
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.

... See full list

3 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_delete in modules/trigger/trigger.module
Implements hook_user_delete().

File

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

Code

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