You are here

function event_admin_events_validate in Event Calendar 7

Validate event_admin_events form submissions.

Check if any nodes have been selected to perform the chosen 'Update option' on.

1 string reference to 'event_admin_events_validate'
event_admin_events in ./event_calendar.list.inc
Form builder: Builds the event administration overview.

File

./event_calendar.list.inc, line 281
Event administration UI.

Code

function event_admin_events_validate($form, &$form_state) {

  // Error if there are no items to select.
  if (!is_array($form_state['values']['events']) || !count(array_filter($form_state['values']['events']))) {
    form_set_error('', t('No event selected.'));
  }
}