You are here

function imagefield_crop_file_update in Imagefield Crop 6

File

./imagefield_crop_file.inc, line 17
hook_file and imagefield_crop file functions.

Code

function imagefield_crop_file_update(&$file) {

  // update admin thumbnail
  imagefield_file_insert($file);

  // flush imagecache
  module_invoke('imagecache', 'image_flush', $file->filepath);

  // update timestamp, see http://drupal.org/node/353405
  $file->timestamp = REQUEST_TIME;
  drupal_write_record('files', $file, 'fid');
}