You are here

function hook_gauth_account_delete in Google Auth 7

Same name and namespace in other branches
  1. 7.2 gauth.api.php \hook_gauth_account_delete()

Respond to gauth account deletion.

This hook is invoked from gauth_account_delete() is called and before account is actually removed from the database.

Parameters

$account: The account that is being deleted.

1 invocation of hook_gauth_account_delete()
gauth_account_delete in ./gauth.module
Delete an account.

File

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

Code

function hook_gauth_account_delete($account) {
  db_delete('mytable')
    ->condition('id', $account['id'])
    ->execute();
}