function fillpdf_get_fields in FillPDF 7.2
Same name and namespace in other branches
- 6 fillpdf.module \fillpdf_get_fields()
- 7 fillpdf.module \fillpdf_get_fields()
Retrieve the PDF's fields.
1 call to fillpdf_get_fields()
- fillpdf_import_mappings in ./
fillpdf.admin.inc - Import an array of decoded FillPDF mappings. For the format,
File
- ./
fillpdf.module, line 998 - Allows mappings of PDFs to site content
Code
function fillpdf_get_fields($fid) {
$result = db_query('SELECT * FROM {fillpdf_fields} WHERE fid = :fid', array(
':fid' => $fid,
));
$return = array(
'pdf_key' => '',
'label' => '',
'value' => '',
);
foreach ($result as $result_array) {
$return[$result_array->pdf_key] = array(
'label' => $result_array->label,
'value' => $result_array->value,
);
}
return $return;
}