You are here

function bynder_upload_delete_tmp_files in Bynder 7

1 string reference to 'bynder_upload_delete_tmp_files'
bynder_upload_submit in includes/bynder_upload.inc

File

includes/bynder_upload.inc, line 155

Code

function bynder_upload_delete_tmp_files(&$context) {
  if (isset($context['results']['to_delete'])) {
    $name = $context['results']['to_delete']->filename;
    file_delete($context['results']['to_delete']);
    $context['results']['files_done'][] = $name;
  }
}