function _print_pdf_settings_validate in Printer, email and PDF versions 6
Same name and namespace in other branches
- 5.4 print_pdf/print_pdf.admin.inc \_print_pdf_settings_validate()
- 5.3 print_pdf/print_pdf.admin.inc \_print_pdf_settings_validate()
- 7.2 print_pdf/print_pdf.admin.inc \_print_pdf_settings_validate()
- 7 print_pdf/print_pdf.admin.inc \_print_pdf_settings_validate()
- 5.x print_pdf/print_pdf.admin.inc \_print_pdf_settings_validate()
Validate print_pdf_settings form.
1 string reference to '_print_pdf_settings_validate'
- print_pdf_settings in print_pdf/
print_pdf.admin.inc - Menu callback for the PDF version module settings form.
File
- print_pdf/
print_pdf.admin.inc, line 269 - Contains the administrative functions of the PDF version module.
Code
function _print_pdf_settings_validate($form, &$form_state) {
if (empty($form_state['values']['print_pdf_pdf_tool'])) {
form_set_error('print_pdf_pdf_tool', t("No PDF tool selected"));
}
if ($form_state['values']['print_pdf_font_size'] < 1) {
form_set_error('print_pdf_font_size', t("Font size must be at least 1."));
}
}