This project is not covered by Drupal’s security advisory policy.
Overview
This module allows users, of a specific role, to block site users (individual or all) for a defined time period. Users can be banned by admin for a definite time period. Users can be ban or temporarily block by individually or collectively by users roles. Means there is a sub module present here from where admin can ban users by role wise. This way we can make disable user log in for definite time period.
Temporary blocking of users or ban user will be automatically lifted after the defined temporary blocking date or temporary blocking time.
This module will be handy when someone wants to stop user's activity on the site for a specific period or ban users activity or restrict user activity for some time, in order to do certain db maintenance activities which do not necessarily requires taking the site offline.
REQUIREMENTS
----------------------
Date PopUp - http://drupal.org/project/date
INSTALLATION/USAGES
--------------------
1. Copy temporarily_block_users folder to modules directory.
2. At admin/build/modules enable the "Temporarily Block Users" module.
3. Enable permissions at admin/user/permissions.
4. Configure the module at admin/user/tbu/settings.
5. Go to user edit to block user.
MODULE PERMISSIONS
------------------------------
1.administer temporarily block user - Administer for temporarily block user.
2.exclude temporarily_block_users - Never block user which has this permission.
MODULE HOOKS
----------------------
hook_temporarilyblock($form, $form_state)
Perform addition form validation on user login from.
Parameters
$form:- An associative array containing the structure of the form, which is passed by reference. Form validation handlers are able to alter
the form structure (like #process and #after_build callbacks during form building) in case of a validation error. If a validation handler
alters the form structure, it is responsible for validating the values of changed form elements in $form_state['values'] to prevent form
submit handlers from receiving unvalidated values.
$form_state:- A keyed array containing the current state of the form. The current user-submitted data is stored in $form_state['values'], though
form validation functions are passed an explicit copy of the values for the sake of simplicity. Validation handlers can also $form_state to
pass information on to submit handlers. For example: $form_state['data_for_submission'] = $data; This technique is useful when validation
requires file parsing, web service requests, or other expensive requests that should not be repeated in the submission step.
SUB MODULE
Temporarily Block User base on Roles
-----------------------------------------
Temporarily block all users of particular user role which temporarily block by admin.
Project information
- Project categories: Access control
- Created by yogesh1110 on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
