function imce_thumbnail_options in IMCE 6.2
Same name and namespace in other branches
- 6 inc/page.inc \imce_thumbnail_options()
- 7 inc/imce.page.inc \imce_thumbnail_options()
Return thumbnails as options to be used in upload form.
2 calls to imce_thumbnail_options()
- imce_thumb_form in inc/
imce.page.inc - Thumbnail form.
- imce_upload_form in inc/
imce.page.inc - Upload form.
File
- inc/
imce.page.inc, line 717 - Implements the file browser.
Code
function imce_thumbnail_options($thumbs = array()) {
$options = array();
foreach ($thumbs as $thumb) {
$options[$thumb['name']] = $thumb['name'] . ' (' . $thumb['dimensions'] . ')';
}
return $options;
}