function _print_pdf_settings_validate in Printer, email and PDF versions 5.4
Same name and namespace in other branches
- 5.3 print_pdf/print_pdf.admin.inc \_print_pdf_settings_validate()
- 6 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.
File
- print_pdf/
print_pdf.admin.inc, line 252 - Contains the administrative functions of the PDF version module.
Code
function _print_pdf_settings_validate($form_id, $form_values, $form) {
if (empty($form_values['print_pdf_pdf_tool'])) {
form_set_error('print_pdf_pdf_tool', t("No PDF tool selected"));
}
if ($form_values['print_pdf_font_size'] < 1) {
form_set_error('print_pdf_font_size', t("Font size must be at least 1."));
}
}