You are here

function fillpdf_form_edit_validate in FillPDF 7.2

Same name and namespace in other branches
  1. 5 fillpdf.module \fillpdf_form_edit_validate()
  2. 7 fillpdf.admin.inc \fillpdf_form_edit_validate()

File

./fillpdf.admin.inc, line 355
Allows mappings of PDFs to site content

Code

function fillpdf_form_edit_validate($form, &$form_state) {
  if ($file = $_FILES['files']['name']['upload_pdf']) {
    $validate_file = _fillpdf_validate_upload($file);
    if (isset($validate_file['#error'])) {
      form_set_error('url', $validate_file['#message']);
    }
  }
}