function fillpdf_update_field in FillPDF 7.2
Same name and namespace in other branches
- 5 fillpdf.module \fillpdf_update_field()
- 6 fillpdf.admin.inc \fillpdf_update_field()
- 7 fillpdf.deprecated.inc \fillpdf_update_field()
Stores the updated $field in the database
2 calls to fillpdf_update_field()
- fillpdf_field_edit_submit in ./
fillpdf.admin.inc - Save changes to the database.
- fillpdf_import_mappings in ./
fillpdf.admin.inc - Import an array of decoded FillPDF mappings. For the format,
File
- ./
fillpdf.admin.inc, line 709 - Allows mappings of PDFs to site content
Code
function fillpdf_update_field(&$pdf_form, &$field, $old_key) {
db_update('fillpdf_fields')
->fields(array(
'label' => $field->label,
'prefix' => $field->prefix,
'value' => $field->value,
'suffix' => $field->suffix,
'replacements' => $field->replacements,
))
->condition('fid', $pdf_form->fid)
->condition('pdf_key', $old_key)
->execute();
}