1 user.api.php hook_user_login_paths_alter(&$paths)

Redefine user login paths defined by other modules.

Parameters

$paths: An associative array of paths related to the login process, as defined by implementations of hook_user_login_paths(). Modified by reference.

See also

hook_user_login_paths()

Related topics

File

core/modules/user/user.api.php, line 464
Hooks provided by the User module.

Code

function hook_user_login_paths_alter(&$paths) {
  // Do not treat the user login page special (disabling the simplified login
  // page appearance).
  $paths['user/login'] = FALSE;
}