function _fillpdf_build_options_object in FillPDF 7
Same name and namespace in other branches
- 7.2 fillpdf.module \_fillpdf_build_options_object()
Return a FillPDF options object.
Parameters
$force_download:
$flatten:
$fillpdf_info:
$data:
$nodes:
$webforms:
$uc_orders:
$uc_order_products:
$token_objects:
bool $sample:
$entities:
Return value
object The FillPDF options object.
1 call to _fillpdf_build_options_object()
- fillpdf_merge_pdf in ./
fillpdf.module - Constructs a page and sends it to the browser or saves it.
File
- ./
fillpdf.module, line 1056
Code
function _fillpdf_build_options_object($force_download, $flatten, $fillpdf_info, $data, $nodes, $webforms, $uc_orders, $uc_order_products, $token_objects, $sample, $entities) {
// @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,
'entities' => $entities,
);
$fillpdf_object->token_objects = $token_objects;
$fillpdf_object->options = array(
'download' => $force_download,
'flatten' => $flatten,
'sample' => $sample,
);
return $fillpdf_object;
}