function user_delete in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/user.module \user_delete()
Delete a user.
Parameters
int $uid: A user ID.
2 calls to user_delete()
- DbLogTest::testTemporaryUser in core/
modules/ dblog/ src/ Tests/ DbLogTest.php - Tests that the details page displays correctly for a temporary user.
- EntityCrudHookTest::testUserHooks in core/
modules/ system/ src/ Tests/ Entity/ EntityCrudHookTest.php - Tests hook invocations for CRUD operations on users.
File
- core/
modules/ user/ user.module, line 842 - Enables the user registration and login system.
Code
function user_delete($uid) {
user_delete_multiple(array(
$uid,
));
}