You are here

function image_filefield_paths_batch_update in File (Field) Paths 6

Implements hook_filefield_paths_batch_update().

File

modules/image.inc, line 83
Provides FileField Paths integration with the Image module.

Code

function image_filefield_paths_batch_update($field, $type, &$objects) {
  $result = db_query("SELECT nid FROM {node} WHERE type = '%s'", 'image');

  // Build array of Node IDs.
  while ($node = db_fetch_object($result)) {
    $objects[] = $node->nid;
  }
}