1 views_handler_field_serialized.inc views_handler_field_serialized::options_validate(&$form, &$form_state)

Validate the options form.

Overrides views_handler::options_validate

File

core/modules/views/handlers/views_handler_field_serialized.inc, line 49
Definition of views_handler_field_serialized.

Class

views_handler_field_serialized
Field handler to show data of serialized fields.

Code

function options_validate(&$form, &$form_state) {
  // Require a key if the format is key.
  if ($form_state['values']['options']['format'] == 'key' && $form_state['values']['options']['key'] == '') {
    form_error($form['key'], t('You have to enter a key if you want to display a key of the data.'));
  }
}