You are here

function photos_user_insert in Album Photos 7.3

Same name and namespace in other branches
  1. 8.5 photos.module \photos_user_insert()
  2. 8.4 photos.module \photos_user_insert()
  3. 6.0.x photos.module \photos_user_insert()

Implements hook_user_insert().

File

./photos.module, line 863
Implementation of photos.module.

Code

function photos_user_insert(&$edit, $account, $category) {
  db_query("INSERT INTO {photos_count} (cid, changed, type, value) VALUES (:uid, 0, 'user_album', 0), (:uid, 0, 'user_image', 0)", array(
    ':uid' => $account->uid,
  ));
}