You are here

function imce_thumb_form in IMCE 7

Same name and namespace in other branches
  1. 6.2 inc/imce.page.inc \imce_thumb_form()
  2. 6 inc/page.inc \imce_thumb_form()

Thumbnail form.

1 call to imce_thumb_form()
imce_fileop_form in inc/imce.page.inc
File operations form.

File

inc/imce.page.inc, line 224
Implements the file browser.

Code

function imce_thumb_form(&$imce) {
  $form['thumbnails'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Thumbnails'),
    '#options' => imce_thumbnail_options($imce['thumbnails']),
  );
  $form['thumb'] = array(
    '#type' => 'submit',
    '#value' => t('Create thumbnails'),
    '#submit' => $imce['perm']['thumb'] ? array(
      'imce_thumb_submit',
    ) : NULL,
  );
  return $form;
}