You are here

function securelogin_init in Secure Login 6

Same name and namespace in other branches
  1. 5 securelogin.module \securelogin_init()

Implements hook_init().

File

./securelogin.module, line 169

Code

function securelogin_init() {
  if (user_is_logged_in() && arg(0) == 'user' && (arg(1) == 'login' || arg(1) == 'register')) {
    drupal_goto('user');
  }
}