function fillpdf_get_fields in FillPDF 6
Same name and namespace in other branches
- 7.2 fillpdf.module \fillpdf_get_fields()
- 7 fillpdf.module \fillpdf_get_fields()
1 call to fillpdf_get_fields()
File
- ./
fillpdf.module, line 679 - Allows mappings of PDFs to site content
Code
function fillpdf_get_fields($fid) {
$result = db_query('select * from {fillpdf_fields} where fid = %d', $fid);
$return = array();
while ($result_array = db_fetch_array($result)) {
$return[$result_array['pdf_key']] = array(
'label' => $result_array['label'],
'value' => $result_array['value'],
);
}
return $return;
}