You are here

function user_restrictions_unblock_mail in User restrictions 7

Rules callback to unblock an email.

Parameters

object $user:

File

./user_restrictions.rules.inc, line 109
Rules_info for the User restrictions module.

Code

function user_restrictions_unblock_mail($user) {
  $instance = UserRestrictions::getInstanceByMask('mail', $user->mail);
  $instance
    ->delete();
}