You are here

function drupagram_views_handler_field_likes::options_validate in Drupagram 7

Same name and namespace in other branches
  1. 6 views/drupagram_views_handler_field_likes.inc \drupagram_views_handler_field_likes::options_validate()

Validate the options form.

Overrides views_handler::options_validate

File

./drupagram_views_field_handlers.inc, line 190
Drupagram views field handlers.

Class

drupagram_views_handler_field_likes
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.'));
  }
}