function user_delete

Delete a user.

Parameters

$uid: A user ID.

5 calls to user_delete()
EntityCrudHookTestCase::testUserHooks in drupal/modules/simpletest/tests/entity_crud_hook_test.test
Tests hook invocations for CRUD operations on users.
FileFieldRevisionTestCase::testRevisions in drupal/modules/file/tests/file.test
Tests creating multiple revisions of a node and managing attached files.
ProfileCrudTestCase::testUserCRUD in drupal/modules/profile/profile.test
Test profile integration with user CRUD operations.
UserPasswordResetTestCase::testResetImpersonation in drupal/modules/user/user.test
Make sure that users cannot forge password reset URLs of other users.
_user_cancel in drupal/modules/user/user.module
Implements callback_batch_operation().
4 string references to 'user_delete'
TriggerUserTokenTestCase::testUserTriggerTokenReplacement in drupal/modules/trigger/trigger.test
Tests a variety of token replacements in actions.
trigger_test_action_info in drupal/modules/trigger/tests/trigger_test.module
Implements hook_action_info().
trigger_user_cancel in drupal/modules/trigger/trigger.module
Implements hook_user_cancel().
trigger_user_delete in drupal/modules/trigger/trigger.module
Implements hook_user_delete().

File

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

Code

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