image_file_move

image_file_move(File $file, File $source)

Implements hook_file_move().

File

core/modules/image/image.module, line 206
Exposes global functionality for creating image styles.

Code

function image_file_move(File $file, File $source) {
  // Delete any image derivatives at the original image path.
  image_path_flush($source->getFileUri());
}
doc_Drupal
2016-10-29 09:20:21
Comments
Leave a Comment

Please login to continue.