You are here

function webform_protected_downloads_file_delete in Webform Protected Downloads 7

Implementation of hook_file_delete().

File

./webform_protected_downloads.module, line 252
This file contains hook declarations and functions for the Webform Protected Downloads module.

Code

function webform_protected_downloads_file_delete($file) {

  // delete all wpd information associated with the file
  db_delete('wpd_protected_files')
    ->condition('fid', $file->fid)
    ->execute();
}