function user_restrictions_unblock_name in User restrictions 7
Rules callback to unblock a username.
Parameters
object $user:
File
- ./
user_restrictions.rules.inc, line 89 - Rules_info for the User restrictions module.
Code
function user_restrictions_unblock_name($user) {
$instance = UserRestrictions::getInstanceByMask('name', $user->name);
$instance
->delete();
}