function photos_node_update in Album Photos 7.3
Same name and namespace in other branches
- 8.5 photos.module \photos_node_update()
- 8.4 photos.module \photos_node_update()
- 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);
}
}