You are here

function imce_thumbnail_options in IMCE 6

Same name and namespace in other branches
  1. 6.2 inc/imce.page.inc \imce_thumbnail_options()
  2. 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/page.inc
Thumbnail form.
imce_upload_form in inc/page.inc
Upload form.

File

inc/page.inc, line 638

Code

function imce_thumbnail_options($thumbs = array()) {
  $options = array();
  foreach ($thumbs as $thumb) {
    $options[$thumb['name']] = $thumb['name'] . ' (' . $thumb['dimensions'] . ')';
  }
  return $options;
}