You are here

function fillpdf_update_field in FillPDF 6

Same name and namespace in other branches
  1. 5 fillpdf.module \fillpdf_update_field()
  2. 7.2 fillpdf.admin.inc \fillpdf_update_field()
  3. 7 fillpdf.deprecated.inc \fillpdf_update_field()
2 calls to fillpdf_update_field()
fillpdf_field_edit_submit in ./fillpdf.admin.inc
fillpdf_form_import_form_submit in ./fillpdf.admin.inc

File

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

Code

function fillpdf_update_field(&$pdf_form, &$field, $old_key) {
  db_query("UPDATE {fillpdf_fields} SET label = '%s', pdf_key='%s',\n           value = '%s', replacements='%s' WHERE fid = %d AND pdf_key = '%s'", $field->label, $field->pdf_key, empty($field->value) ? '' : $field->value, $field->replacements, $pdf_form->fid, $old_key);
}