function _emthumb_file_delete in Embedded Media Field 6
Same name and namespace in other branches
- 5 contrib/emthumb/emthumb.module \_emthumb_file_delete()
- 6.3 contrib/emthumb/emthumb.module \_emthumb_file_delete()
- 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 ./
emfield.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 505 - Allows for custom thumbnail overrides to Embedded Media Field.
Code
function _emthumb_file_delete($file, $fieldname) {
if (is_numeric($file['fid'])) {
db_query('DELETE FROM {files} WHERE fid = %d', $file['fid']);
}
return file_delete($file['filepath']);
}