You are here

function _fillpdf_build_options_object in FillPDF 7.2

Same name and namespace in other branches
  1. 7 fillpdf.module \_fillpdf_build_options_object()

Parameters

$force_download:

$flatten:

$fillpdf_info:

$data:

$nodes:

$webforms:

$uc_orders:

$uc_order_products:

$token_objects:

Return value

stdClass

1 call to _fillpdf_build_options_object()
fillpdf_merge_pdf in ./fillpdf.module

File

./fillpdf.module, line 581
Allows mappings of PDFs to site content

Code

function _fillpdf_build_options_object($force_download, $flatten, $fillpdf_info, $data, $nodes, $webforms, $uc_orders, $uc_order_products, $token_objects) {

  // @todo: Convert function parameters to use $options
  // and add those into $fillpdf_info.
  $fillpdf_object = new stdClass();
  $fillpdf_object->info = $fillpdf_info;
  $fillpdf_object->data = $data;
  $fillpdf_object->context = array(
    'nodes' => $nodes,
    'webforms' => $webforms,
    'uc_orders' => $uc_orders,
    'uc_order_products' => $uc_order_products,
  );
  $fillpdf_object->token_objects = $token_objects;
  $fillpdf_object->options = array(
    'download' => $force_download,
    'flatten' => $flatten,
  );
  return $fillpdf_object;
}