function imce_resize_form in IMCE 7
Same name and namespace in other branches
- 6.2 inc/imce.page.inc \imce_resize_form()
- 6 inc/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 253 - 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'),
// Permission for submission.
'#submit' => $imce['perm']['resize'] ? array(
'imce_resize_submit',
) : NULL,
'#suffix' => '</div>',
);
$form['copy'] = array(
'#type' => 'checkbox',
'#title' => t('Create a new image'),
'#default_value' => 1,
);
return $form;
}