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