function imce_process_files in IMCE 7
Same name and namespace in other branches
- 6.2 inc/imce.page.inc \imce_process_files()
- 6 inc/page.inc \imce_process_files()
Do batch operations on files.
Used by delete, resize, create thumbnail submissions.
3 calls to imce_process_files()
- imce_delete_submit in inc/
imce.page.inc - Submit delete form.
- imce_resize_submit in inc/
imce.page.inc - Submit resize form.
- imce_thumb_submit in inc/
imce.page.inc - Submit thumbnail form.
File
- inc/
imce.page.inc, line 436 - Implements the file browser.
Code
function imce_process_files($filenames, &$imce, $function, $args = array()) {
$args = array_merge(array(
'',
&$imce,
), $args);
$processed = array();
foreach ($filenames as $filename) {
$args[0] = $filename;
if (call_user_func_array($function, $args)) {
$processed[] = $filename;
}
}
return $processed;
}