You are here

function fillpdf_get_fields in FillPDF 6

Same name and namespace in other branches
  1. 7.2 fillpdf.module \fillpdf_get_fields()
  2. 7 fillpdf.module \fillpdf_get_fields()
1 call to fillpdf_get_fields()
fillpdf_form_import_form_submit in ./fillpdf.admin.inc

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;
}