You are here

function hook_pre_auto_login_url in Auto Login URL 7

Hook that runs before login.

Parameters

object $user: User to login.

string $destination: Destination link after login.

1 invocation of hook_pre_auto_login_url()
_auto_login_url_page in ./auto_login_url.module
Auto login the user.

File

./auto_login_url.api.php, line 16
Hooks provided by the auto_login_url module.

Code

function hook_pre_auto_login_url($user, $destination) {
  watchdog('my_module', 'User @user, destination @destination', array(
    '@user' => $user->id,
    '@destination' => $destination,
  ));
}