You are here

function photos_user_load in Album Photos 7.3

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

Implements hook_user_load().

File

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

Code

function photos_user_load($users) {
  foreach ($users as $account) {
    $account->album['album']['count'] = photos_get_count('user_album', $account->uid);
    $account->album['image']['count'] = photos_get_count('user_image', $account->uid);
  }
}