You are here

function bootstrap_tour_form_validate in Bootstrap Tour 7.2

Implements hook_form_validate().

File

includes/bootstrap_tour.admin.inc, line 92
The file for admin forms and functionality for the bootstrap_tour entity

Code

function bootstrap_tour_form_validate($form, &$form_state) {
  if ($form_state['values']['autorun'] && empty($form_state['values']['start_path'])) {
    form_set_error('start_path', "You must provide a path if the 'Automatically Run' option is checked.");
  }
}