function hook_login_history_detect_new_login_alter in Login History 7
Allow modules to say that a specific login is not new.
Parameters
array $detection: An array of key->value strings that describe a login. Includes user_agent at the start. Modules can add data.
$account: The user account that is logging in. Implementers should take care not to modify this data.
$previously_detected: A boolean that starts as FALSE and can be used to indicate a login is not new. NOTE: Modules should generally leave it as TRUE if it starts as TRUE.
1 invocation of hook_login_history_detect_new_login_alter()
- login_history_send_mail_new_login_device in ./
login_history.module - Determines if an email should be sent to a visitor for a login on a "new" device.
File
- ./
login_history.api.php, line 59 - Documentation for Login History module API.
Code
function hook_login_history_detect_new_login_alter($detection, $account, &$previously_detected) {
$previously_detected = $previously_detected || FALSE;
}