You are here

function hook_fullcalendar_options_validate in FullCalendar 7.2

Allows validation of the FullCalendar Views options form.

Parameters

array $form: The FullCalendar style plugin options form structure.

array $form_state: The FullCalendar style plugin options form state.

object $view: The FullCalendar view object.

See also

views_object::options_validate()

1 invocation of hook_fullcalendar_options_validate()
fullcalendar_plugin_style_fullcalendar::options_validate in includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc
Validate the options form.

File

./fullcalendar.api.php, line 235
Hooks provided by the FullCalendar module.

Code

function hook_fullcalendar_options_validate(&$form, &$form_state, &$view) {
  if (!is_numeric($form_state['values']['style_options']['example']['number'])) {
    form_error($form['example']['number'], t('!setting must be numeric.', array(
      'setting' => 'Number',
    )));
  }
}