function fillpdf_update_field in FillPDF 6
Same name and namespace in other branches
- 5 fillpdf.module \fillpdf_update_field()
- 7.2 fillpdf.admin.inc \fillpdf_update_field()
- 7 fillpdf.deprecated.inc \fillpdf_update_field()
2 calls to fillpdf_update_field()
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);
}