You are here

function image_operations_rebuild in Image 5

Same name and namespace in other branches
  1. 5.2 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 310

Code

function image_operations_rebuild($nids) {
  foreach ($nids as $nid) {
    if ($node = node_load($nid)) {
      if ($node->type == 'image') {
        $node->rebuild_images = TRUE;
        drupal_set_message(t("Rebuilding %node-title's resized images.", array(
          '%node-title' => $node->title,
        )));
        image_update($node);
      }
    }
  }
}