function imce_delete_file in IMCE 6.2
Same name and namespace in other branches
- 5 imce.module \imce_delete_file()
- 6 inc/page.inc \imce_delete_file()
- 7 inc/imce.page.inc \imce_delete_file()
Delete a file in the file list.
1 string reference to 'imce_delete_file'
- imce_delete_submit in inc/
imce.page.inc - Submit delete form.
File
- inc/
imce.page.inc, line 401 - Implements the file browser.
Code
function imce_delete_file($filename, &$imce) {
$filepath = file_directory_path() . ($imce['dir'] == '.' ? '' : '/' . $imce['dir']) . '/' . $filename;
if (!imce_delete_filepath($filepath)) {
return FALSE;
}
imce_remove_file($filename, $imce);
return TRUE;
}