You are here

function imce_thumbnail_options in IMCE 7

Same name and namespace in other branches
  1. 6.2 inc/imce.page.inc \imce_thumbnail_options()
  2. 6 inc/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 836
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;
}