function imce_file_register in IMCE 7
Same name and namespace in other branches
- 6.2 inc/imce.page.inc \imce_file_register()
Registers the file as an IMCE file.
2 calls to imce_file_register()
- imce_resize_image in inc/
imce.page.inc - Resize an image in the file list. Also used for thumbnail creation.
- imce_upload_submit in inc/
imce.page.inc - Submit upload form.
File
- inc/
imce.page.inc, line 1273 - Implements the file browser.
Code
function imce_file_register($file) {
if (!db_query("SELECT 1 FROM {file_usage} WHERE module = 'imce' AND fid = :fid", array(
':fid' => $file->fid,
))
->fetchField()) {
file_usage_add($file, 'imce', 'file', $file->fid);
}
}