You are here

function _print_pdf_settings_validate in Printer, email and PDF versions 5.3

Same name and namespace in other branches
  1. 5.4 print_pdf/print_pdf.admin.inc \_print_pdf_settings_validate()
  2. 6 print_pdf/print_pdf.admin.inc \_print_pdf_settings_validate()
  3. 7.2 print_pdf/print_pdf.admin.inc \_print_pdf_settings_validate()
  4. 7 print_pdf/print_pdf.admin.inc \_print_pdf_settings_validate()
  5. 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 180
Contains the administrative functions of the PDF version module.

Code

function _print_pdf_settings_validate($form_id, $form_values, $form) {
  $font_size = $form_values['print_pdf_font_size'];
  if ($font_size < 1) {
    form_set_error('print_pdf_font_size', t("Font size must be at least 1."));
  }
}