You are here

function iek_image_corner_form in Image effect kit 7

Effect configuration form for iek_image_corner.

1 string reference to 'iek_image_corner_form'
iek_image_effect_info in ./iek.module
Implements hook_image_effect_info().

File

./iek.module, line 428
Primarily Drupal hooks and global API functions to manipulate image styles.

Code

function iek_image_corner_form($data) {
  $form['radius'] = array(
    '#type' => 'textfield',
    '#title' => t('Radius'),
    '#default_value' => isset($data['radius']) ? $data['radius'] : '10',
    '#field_suffix' => ' ' . t('pixels'),
    '#required' => TRUE,
    '#size' => 5,
    '#element_validate' => array(
      'iek_effect_natural_number_validate',
    ),
    '#allow_natural_number' => array(
      'zero',
      'positive',
    ),
  );
  return $form;
}