You are here

function image_operations_rebuild in Image 6

Same name and namespace in other branches
  1. 5.2 image.module \image_operations_rebuild()
  2. 5 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 169

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);
      }
    }
  }
}