You are here

function fullcalendar_plugin_style_fullcalendar::options_validate in FullCalendar 7.2

Validate the options form.

Overrides views_plugin_style::options_validate

File

includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc, line 135
Contains the FullCalendar style plugin.

Class

fullcalendar_plugin_style_fullcalendar
@file Contains the FullCalendar style plugin.

Code

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

  // If an option was defined with #data_type, cast the value to that.
  if (is_array($form_state['values']['style_options'])) {
    $this
      ->fullcalendar_cast_nested_value($form_state['values']['style_options'], $form);
  }
  fullcalendar_include_api();
  $arguments = array(
    &$form,
    &$form_state,
    &$this,
  );
  foreach (module_implements('fullcalendar_options_validate') as $module) {
    $function = $module . '_fullcalendar_options_validate';
    call_user_func_array($function, $arguments);
  }
}