You are here

function hook_gauth_account_update in Google Auth 7.2

Same name and namespace in other branches
  1. 7 gauth.api.php \hook_gauth_account_update()

A gauth account was updated.

Modules may use this hook to update their data in a custom storage after a gauth account has been updated.

Parameters

$edit: The array of account details submitted by the user.

$account: The original array of account from the db.

1 invocation of hook_gauth_account_update()
gauth_account_save in ./gauth.module
Save an account.

File

./gauth.api.php, line 44
Hooks provided by the GAuth module.

Code

function hook_gauth_account_update(&$edit, $account) {
  db_insert('account_changes')
    ->fields(array(
    'id' => $account['id'],
    'changed' => time(),
  ))
    ->execute();
}