function lightbox2_slideshow_settings_form_validate in Lightbox2 8
Same name and namespace in other branches
- 5.2 lightbox2.module \lightbox2_slideshow_settings_form_validate()
- 6 lightbox2.admin.inc \lightbox2_slideshow_settings_form_validate()
- 7.2 lightbox2.admin.inc \lightbox2_slideshow_settings_form_validate()
- 7 lightbox2.admin.inc \lightbox2_slideshow_settings_form_validate()
Validation function for the slideshow configuration form.
Ensure that the slideshow interval submitted is numeric.
File
- ./
lightbox2.admin.inc, line 668 - Administrative page callbacks for the lightbox2 module.
Code
function lightbox2_slideshow_settings_form_validate($form, &$form_state) {
if (!is_numeric($form_state['values']['lightbox2_slideshow_interval'])) {
form_set_error('lightbox2_slideshow_interval', t('The "interval seconds" value must be numeric.'));
}
}