function persistent_login_user_register_access in Persistent Login 6
Same name and namespace in other branches
- 7 persistent_login.module \persistent_login_user_register_access()
Disable 'Create Account' page 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 - Implementation of hook_menu_alter().
File
- ./
persistent_login.module, line 560 - 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']);
}