function image_file_move
Same name in other branches
- 7.x modules/image/image.module \image_file_move()
- 9 core/modules/image/image.module \image_file_move()
- 10 core/modules/image/image.module \image_file_move()
- 11.x core/modules/image/image.module \image_file_move()
Implements hook_file_move().
File
-
core/
modules/ image/ image.module, line 220
Code
function image_file_move(FileInterface $file, FileInterface $source) {
// Delete any image derivatives at the original image path.
image_path_flush($source->getFileUri());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.