You are here

function imce_remove_file in IMCE 6

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

Remove a file from the file list.

1 call to imce_remove_file()
imce_delete_file in inc/page.inc
Delete a file in the file list.

File

inc/page.inc, line 548

Code

function imce_remove_file($filename, &$imce) {
  if (isset($imce['files'][$filename])) {
    $imce['dirsize'] -= $imce['files'][$filename]['size'];
    unset($imce['files'][$filename]);
    if (isset($_GET['jsop'])) {
      $imce['removed'][] = rawurlencode($filename);
    }
  }
}