You are here

function photos_node_update in Album Photos 7.3

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

Implements hook_node_update().

File

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

Code

function photos_node_update($node) {
  if ($node->type == 'photos') {
    db_update('photos_album')
      ->fields(array(
      'data' => serialize($node->album),
    ))
      ->condition('pid', $node->nid)
      ->execute();
    photos_set_count('user_album', $node->uid);
  }
}