You are here

function deploy_uuid_file_delete in Deploy - Content Staging 6

Implementation of hook_file_delete().

Delete files UUID from appropriate table.

File

modules/deploy_uuid/deploy_uuid.module, line 64
Deployment UUID management

Code

function deploy_uuid_file_delete($file) {

  // Ensure that $file is an object.
  if (!is_object($file)) {
    $file = (object) $file;
  }
  db_query("DELETE FROM {files_uuid} WHERE fid = %d", $file->fid);
}