function imagecrop_controls_form in Image javascript crop 7
Form for controlling live cropping data.
File
- includes/
imagecrop.admin.inc, line 476 - Administration tools for the imagecrop module.
Code
function imagecrop_controls_form($imagecrop) {
$form = array();
$form['crop-width'] = array(
'#type' => 'textfield',
'#title' => t('Width'),
'#default_value' => $imagecrop
->getWidth(),
);
$form['crop-height'] = array(
'#type' => 'textfield',
'#title' => t('Height'),
'#default_value' => $imagecrop
->getHeight(),
);
$form['x'] = array(
'#type' => 'textfield',
'#title' => t('X position'),
'#default_value' => $imagecrop
->getWidth(),
);
$form['y'] = array(
'#type' => 'textfield',
'#title' => t('Y position'),
);
return $form;
}