function textimage_settings_form_validate in Textimage 5
Same name and namespace in other branches
- 5.2 textimage_admin.inc \textimage_settings_form_validate()
- 6.2 textimage_admin.inc \textimage_settings_form_validate()
- 7.2 textimage.admin.inc \textimage_settings_form_validate()
File
- ./
textimage.module, line 267
Code
function textimage_settings_form_validate($form_id, $form_values) {
//check for valid font path
if ($form_values['textimage_fonts_path'] != "" && !is_dir(rtrim($form_values['textimage_fonts_path'], '\\/'))) {
form_set_error('textimage_fonts_path', t('The entered font path is invalid'));
}
//check for valid image path
if ($form_values['textimage_images_path'] != "" && !is_dir(rtrim($form_values['textimage_images_path'], '\\/'))) {
form_set_error('textimage_images_path', t('The entered image path is invalid'));
}
}