You are here

function user_revision_user_insert in User Revision 7

Same name and namespace in other branches
  1. 7.2 user_revision.module \user_revision_user_insert()

Implements hook_user_insert().

File

./user_revision.module, line 359
Enables user revision.

Code

function user_revision_user_insert(&$edit, $account, $category) {
  db_update('user_revision')
    ->condition('vid', $account->vid)
    ->fields(array(
    'uid' => $account->uid,
  ))
    ->execute();
}