This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tell Drupal to cancel this user. | |
// The third argument can be one of the following: | |
// - user_cancel_block: disable user, leave content | |
// - user_cancel_block_unpublish: disable user, unpublish content | |
// - user_cancel_reassign: delete user, reassign content to uid=0 | |
// - user_cancel_delete: delete user, delete content | |
user_cancel(array(), $uid, 'user_cancel_reassign'); | |
// user_cancel() initiates a batch process. Run it manually. | |
$batch =& batch_get(); |