You are here

function date_api_argument_handler::options_validate in Date 6

Same name and namespace in other branches
  1. 6.2 includes/date_api_argument_handler.inc \date_api_argument_handler::options_validate()

File

./date_api.views.inc, line 178
Defines date-related Views data and plugins:

Class

date_api_argument_handler
Date API argument handler.

Code

function options_validate($form, &$form_state) {
  if (empty($form_state['values']['options']['date_fields'])) {
    form_error($form, t('You must select at least one date field for this argument.'));
  }
}