You are here

function imce_resize_form in IMCE 6.2

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

Resizing form.

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

File

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

Code

function imce_resize_form(&$imce) {
  $form['width'] = array(
    '#type' => 'textfield',
    '#title' => t('Width x Height'),
    '#size' => 5,
    '#maxlength' => 4,
    '#prefix' => '<div class="container-inline">',
  );
  $form['height'] = array(
    '#type' => 'textfield',
    '#size' => 5,
    '#maxlength' => 4,
    '#prefix' => 'x',
  );
  $form['resize'] = array(
    '#type' => 'submit',
    '#value' => t('Resize'),
    '#submit' => $imce['perm']['resize'] ? array(
      'imce_resize_submit',
    ) : NULL,
    //permission for submission
    '#suffix' => '</div>',
  );
  $form['copy'] = array(
    '#type' => 'checkbox',
    '#title' => t('Create a new image'),
    '#default_value' => 1,
  );
  return $form;
}