function imce_unzip_file in IMCE unzip 7
Same name and namespace in other branches
- 6 imce_unzip.module \imce_unzip_file()
unzip a file in the file list.
1 string reference to 'imce_unzip_file'
- imce_unzip_submit in ./
imce_unzip.module - Submit unzip form.
File
- ./
imce_unzip.module, line 105 - Main functions for IMCE unzip module
Code
function imce_unzip_file($filename, &$imce, $delete_zip_file) {
$filepath = drupal_realpath(imce_dir_uri($imce)) . '/' . $filename;
if (file_exists($filepath)) {
$file = new stdClass();
$file->filename = $filename;
$file->uri = $filepath;
$file->filemime = file_get_mimetype($filename);
return _imce_unzip_file_unzip($file, $imce, $delete_zip_file);
}
return TRUE;
}