You are here

function persistent_login_user_register_access in Persistent Login 7

Same name and namespace in other branches
  1. 6 persistent_login.module \persistent_login_user_register_access()

Disable 'Create Account' link if a user is logged in via PL and trying to access a PL restricted page.

1 string reference to 'persistent_login_user_register_access'
persistent_login_menu_alter in ./persistent_login.module
Implements hook_menu_alter().

File

./persistent_login.module, line 606
Provide a "Remember Me" checkbox in the login form.

Code

function persistent_login_user_register_access() {
  return user_register_access() && empty($_SESSION['persistent_login_reauth']);
}