You are here

function hook_gauth_account_insert in Google Auth 7

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

A gauth account was created.

The module should save its custom additions.

Note that when this hook is invoked, the changes have not yet been written to the database.

Parameters

$account: The account array which will be written to db.

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

File

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

Code

function hook_gauth_account_insert($account) {
  db_insert('mytable')
    ->fields(array(
    'myfield' => $edit['myfield'],
    'uid' => $account->uid,
  ))
    ->execute();
}