You are here

function bynder_image_effect_form in Bynder 7

Form structure for the image scale form.

Note that this is not a complete form, it only contains the portion of the form for configuring the scale options. Therefore it does not not need to include metadata about the effect, nor a submit button.

Parameters

$data: The current configuration for this scale effect.

1 string reference to 'bynder_image_effect_form'
bynder_image_effect_info in includes/bynder.formatters.inc
Implements hook_image_effect_info(). declare effect callbacks

File

includes/bynder.formatters.inc, line 109
bynder/includes/bynder.formatters.inc Formatters for Media: Bynder.

Code

function bynder_image_effect_form($data) {
  $form = image_resize_form($data);
  $form['#element_validate'] = array(
    'bynder_image_effect_form_validate',
  );
  $form['width']['#required'] = true;
  $form['height']['#required'] = true;
  return $form;
}