function user_delete
Same name in other branches
- 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.
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 2613
Code
function user_delete($uid) {
user_delete_multiple(array(
$uid,
));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.