You are here

function imce_remove_file in IMCE 7

Same name and namespace in other branches
  1. 6.2 inc/imce.page.inc \imce_remove_file()
  2. 6 inc/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
Deletes a file in the file list.

File

inc/imce.page.inc, line 651
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);
    }
  }
}