You are here

public function SlickForm::edit_form_validate in Slick Carousel 7.3

Validate callback for the edit form.

Overrides ctools_export_ui::edit_form_validate

File

slick_ui/src/Form/SlickForm.php, line 814

Class

SlickForm
Extends base form for slick instance configuration form.

Namespace

Drupal\slick_ui\Form

Code

public function edit_form_validate(&$form, &$form_state) {
  parent::edit_form_validate($form, $form_state);

  // Update CSS Bezier version.
  $override = $form_state['values']['options']['settings']['cssEaseOverride'];
  if ($override) {
    $override = $this
      ->getBezier($override);
  }

  // Update cssEaseBezier value based on cssEaseOverride.
  $form_state['values']['options']['settings']['cssEaseBezier'] = $override;
}