You are here

function imagecache_resize_form in ImageCache 6.2

Same name and namespace in other branches
  1. 5.2 imagecache_actions.inc \imagecache_resize_form()
2 calls to imagecache_resize_form()
imagecache_scale_and_crop_form in ./imagecache_actions.inc
ImageCache Scale and Crop
imagecache_scale_form in ./imagecache_actions.inc
ImageCache Scale

File

./imagecache_actions.inc, line 3

Code

function imagecache_resize_form($action) {
  $form['width'] = array(
    '#type' => 'textfield',
    '#title' => t('Width'),
    '#default_value' => isset($action['width']) ? $action['width'] : '100%',
    '#description' => t('Enter a width in pixels or as a percentage. i.e. 500 or 80%.'),
  );
  $form['height'] = array(
    '#type' => 'textfield',
    '#title' => t('Height'),
    '#default_value' => isset($action['height']) ? $action['height'] : '100%',
    '#description' => t('Enter a height in pixels or as a percentage. i.e. 500 or 80%.'),
  );
  return $form;
}