function opigno_tincan_question_type_file_delete in Opigno TinCan Question Type 7
Implements hook_file_delete().
File
- ./
opigno_tincan_question_type.module, line 26 - The main module file which contains the main drupal hooks.
Code
function opigno_tincan_question_type_file_delete($file) {
// Delete the extracted files that are in the extracted folder.
$len = strlen(OpignoTincanQuestionTypeQuestion::PATH_PUBLIC_PACKAGE_FOLDER);
if (substr($file->uri, 0, $len) === OpignoTincanQuestionTypeQuestion::PATH_PUBLIC_PACKAGE_FOLDER) {
file_unmanaged_delete_recursive(OpignoTincanQuestionTypeQuestion::getExtractPath($file));
}
}