user_user_operations_unblock
function user_user_operations_unblock
user_user_operations_unblock($accounts)
Callback function for admin mass unblocking users.
File
- modules/user/user.module, line 3276
- Enables the user registration and login system.
Code
function user_user_operations_unblock($accounts) { $accounts = user_load_multiple($accounts); foreach ($accounts as $account) { // Skip unblocking user if they are already unblocked. if ($account !== FALSE && $account->status == 0) { user_save($account, array('status' => 1)); } } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.module/function/user_user_operations_unblock/7.x