function user_restrictions_block_mail in User restrictions 7
Rules callback to block an email.
Parameters
object $user:
File
- ./
user_restrictions.rules.inc, line 98 - Rules_info for the User restrictions module.
Code
function user_restrictions_block_mail($user) {
$instance = UserRestrictions::getInstance();
$instance->type = 'mail';
$instance->mask = $user->mail;
$instance
->save();
}