You are here

function statspro_admin_settings_form_validate in Statistics Pro 6.2

1 string reference to 'statspro_admin_settings_form_validate'
statspro_main_admin_settings_form in ./statspro_admin_settings.inc
Main admin settings form.

File

./statspro_admin_settings.inc, line 62

Code

function statspro_admin_settings_form_validate($form, &$form_state) {
  $charting_libraries = statspro_get_available_charts_graphs();
  if (!isset($charting_libraries[$form_state['values']['statspro_charting_library']])) {
    form_set_error('statspro_charting_library', t('Invalid charting option %charting_option.', array(
      '%charting_option' => $form_state['values']['statspro_charting_library'],
    )));
  }
}