You are here

function imce_remove_file in IMCE 6.2

Same name and namespace in other branches
  1. 6 inc/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/imce.page.inc
Delete a file in the file list.

File

inc/imce.page.inc, line 601
Implements the file browser.

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);
    }
  }
}