You are here

function imce_delete_file in IMCE 5

Same name and namespace in other branches
  1. 6.2 inc/imce.page.inc \imce_delete_file()
  2. 6 inc/page.inc \imce_delete_file()
  3. 7 inc/imce.page.inc \imce_delete_file()

delete a file

1 call to imce_delete_file()
imce_menu in ./imce.module
Implementation of hook_menu().

File

./imce.module, line 336

Code

function imce_delete_file($set, $filename) {
  if (file_delete($set->dir . '/' . $filename)) {
    drupal_set_message(t('File deleted successfully.'));
    return TRUE;
  }
  drupal_set_message(t('Error deleting file.'), 'error');
  return FALSE;
}