You are here

function imagick_wave_form in Imagick 7

Settings form for the imagick wave effect.

Parameters

$action: The saved action form parameters.

1 string reference to 'imagick_wave_form'
imagick_image_effect_info in ./imagick.module
Implements hook_image_effect_info()

File

effects/imagick.wave.inc, line 49

Code

function imagick_wave_form($data) {
  $data = array_merge(imagick_wave_defaults(), (array) $data);
  $form['amplitude'] = array(
    '#type' => 'textfield',
    '#title' => t('Amplitude'),
    '#description' => t('The amplitude of the wave effect.'),
    '#default_value' => $data['amplitude'],
    '#size' => 3,
  );
  $form['length'] = array(
    '#type' => 'textfield',
    '#title' => t('Length'),
    '#description' => t('The length of the wave effect.'),
    '#default_value' => $data['length'],
    '#size' => 3,
  );
  return $form;
}