function geshifilter_admin_general_settings_validate in GeSHi Filter for syntax highlighting 7
Same name and namespace in other branches
- 5.2 geshifilter.admin.inc \geshifilter_admin_general_settings_validate()
- 6 geshifilter.admin.inc \geshifilter_admin_general_settings_validate()
Validate function for admin settings.
1 string reference to 'geshifilter_admin_general_settings_validate'
- geshifilter_admin_general_settings in ./
geshifilter.admin.inc - General settings form for the GeSHi filter.
File
- ./
geshifilter.admin.inc, line 226
Code
function geshifilter_admin_general_settings_validate($form, &$form_state) {
// Check if automatically managed style sheet is posible
if (isset($form_state['values']['geshifilter_css_mode']) && $form_state['values']['geshifilter_css_mode'] == GESHIFILTER_CSS_CLASSES_AUTOMATIC && !_geshifilter_managed_external_stylesheet_possible()) {
form_set_error('geshifilter_css_mode', t('GeSHi filter can not automatically manage an external CSS style sheet when the download method is private.'));
}
}