You are here

function imagefield_file_delete in ImageField 6.3

Implementation of hook_file_delete().

Delete the admin thumbnail when the original is deleted.

File

./imagefield_file.inc, line 20
hook_file and imagefield file functions.

Code

function imagefield_file_delete($file) {
  if (imagefield_file_is_image($file)) {
    file_delete(imagefield_file_admin_thumb_path($file, FALSE));
  }
}