email_required.api.php 553 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Implements hook_email_required_access_alter().
  4. *
  5. * Alter which users are considered to have verified email addresses
  6. *
  7. * @see
  8. * email_required_user_is_validated()
  9. *
  10. * @param $account
  11. * The user account, or uid, we're checking
  12. * @param $admin
  13. * TRUE if users with adequate permissions should be allowed to bypass
  14. * @param &$access
  15. * The current access status for this user. Modify this.
  16. */
  17. function hook_email_required_access_alter($account, $admin, &$access) {
  18. if ($account->uid == 5) {
  19. $access = FALSE;
  20. }
  21. }