You are here

function _emthumb_file_delete in Embedded Media Field 6.3

Same name and namespace in other branches
  1. 5 contrib/emthumb/emthumb.module \_emthumb_file_delete()
  2. 6 contrib/emthumb/emthumb.module \_emthumb_file_delete()
  3. 6.2 contrib/emthumb/emthumb.module \_emthumb_file_delete()
3 calls to _emthumb_file_delete()
emthumb_emfield_field_extra in contrib/emthumb/emthumb.module
Implements hook_emfield_field_extra(). This is called on field operations to allow us to act on emthumbs.
_emfield_emfield_field in deprecated/emfield-deprecated.cck.inc
Implementation of hook_emfield_field(). This in turn is a callback for hook_field().
_emthumb_file_update in contrib/emthumb/emthumb.module
update the file record if necessary

File

contrib/emthumb/emthumb.module, line 570
Allows for custom thumbnail overrides to Embedded Media Field.

Code

function _emthumb_file_delete($file, $field_name) {
  if (is_numeric($file['fid'])) {
    db_query('DELETE FROM {files} WHERE fid = %d', $file['fid']);
  }
  return file_delete($file['filepath']);
}