by John

user_suspend_project.pngUser Suspend provides an interim step between account blocking and account deletion. The user record, user roles and optionally user-created nodes and comments are transferred to separate tables where they are not accessible by the normal Drupal system. Suspended users can be reinstated at any time, recovering all of their previous settings, roles, nodes, and comments.

Prerequisites
None

Installation

  1. copy the user_suspend directory and all its contents to your modules directory
  2. enable the module: admin/build/modules. The module will install five tables into your database.
  3. configure the module: admin/user/settings/user_suspend

Usage

user_suspend_list_0.png
user_suspend_admin_0.png

Suspend users from the default Users list (admin/user/user) by selecting 'Suspend the selected users' from the Update options.

View, reinstate and delete suspended users from the Suspended Users list (admin/user/user/suspend).

Known Issues
Comments are finicky. When comments from suspended users are removed or restored, the comment count may be inaccurate until a new comment is added. When comments are deleted, any comments threaded below a comment from a suspended user will also be deleted. This is by design of the Drupal comment.module to eliminate orphaned comments.

Workaround: Disable 'Remove user comments?' in the User suspend settings, which will detach all comments from a suspended user (uid set to 0). The drawback is that suspended user comments will not be able to be reattached to the user if reinstated in the future.

Download
Download package and report bugs, feature requests, or submit a patch from the project page on the Drupal web site.

Todo List
None

Credits
Module development sponsored by LifeWire, a subsidiary of The New York Times Company.

Release 1.1 (bug fix): processing multiple selections

Fixed processing user reinstate/delete multiple selections by moving drupal_goto out of loop.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Highlighted PHP code can be posted with <?php ... ?> tags.

More information about formatting options

Captcha
We're only human... Captcha is a simple challenge-response test to make sure you are too.
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.