You are here

function availability_calendar_styles_validate in Availability Calendars 7.3

Same name and namespace in other branches
  1. 7.5 availability_calendar.styles.inc \availability_calendar_styles_validate()
  2. 7.4 availability_calendar.styles.inc \availability_calendar_styles_validate()

Callback to validate the form for the style settings.

_state

Parameters

array $form:

1 string reference to 'availability_calendar_styles_validate'
availability_calendar_styles in ./availability_calendar.styles.inc
Callback to retrieve a form for the admin/config/availability-calendar/styles page.

File

./availability_calendar.styles.inc, line 53

Code

function availability_calendar_styles_validate($form, &$form_state) {
  $op = isset($form_state['values']['op']) ? $form_state['values']['op'] : '';
  if ($op == t('Save configuration')) {
    $css_validator = new AvailabilityCalendarStylesFormValidator($form_state['values']);
    $css_validator
      ->exec();
  }
}