You are here

function image_operations_rebuild in Image 5.2

Same name and namespace in other branches
  1. 5 image.module \image_operations_rebuild()
  2. 6 image.module \image_operations_rebuild()
1 string reference to 'image_operations_rebuild'
image_node_operations in ./image.module
Implementation of hook_node_operations().

File

./image.module, line 329

Code

function image_operations_rebuild($nids) {
  foreach ($nids as $nid) {
    if ($node = node_load($nid)) {
      if ($node->type == 'image') {
        $node->rebuild_images = TRUE;
        image_update($node);
      }
    }
  }
}