You are here

function fillpdf_export_form in FillPDF 7.2

Same name and namespace in other branches
  1. 6 fillpdf.admin.inc \fillpdf_export_form()
  2. 7 fillpdf.admin.inc \fillpdf_export_form()

Form for exporting FillPDF field mappings

1 string reference to 'fillpdf_export_form'
fillpdf_form_export in ./fillpdf.admin.inc
Export an importable array of PDF field key -> Label, Value mappings. The array key is the PDF field key and the value is another array containing the label and the value (properly keyed).

File

./fillpdf.admin.inc, line 471
Allows mappings of PDFs to site content

Code

function fillpdf_export_form($form, $form_state, $code) {
  $form = array();
  $form['export'] = array(
    '#type' => 'textarea',
    '#title' => t('FillPDF Form Mappings'),
    '#default_value' => $code,
    '#rows' => 30,
    '#description' => t('Copy this code and then on the site you want to import to, go to the Edit page for the FillPDF form for which you want to import these mappings, and paste it in there.'),
    '#attributes' => array(
      'style' => 'width: 97%;',
    ),
  );
  return $form;
}