function fillpdf_parse_uri in FillPDF 7
Same name and namespace in other branches
- 6 fillpdf.module \fillpdf_parse_uri()
- 7.2 fillpdf.module \fillpdf_parse_uri()
Get the input data and print the PDF.
Get the data and form that need to be merged from the GET params (or the query string parameters in a passed-in URI string), and print the PDF.
See fillpdf_pdf_link() for $_GET params.
1 string reference to 'fillpdf_parse_uri'
- fillpdf_menu in ./
fillpdf.module - Implements hook_menu().
File
- ./
fillpdf.module, line 325
Code
function fillpdf_parse_uri($uri = NULL) {
if (empty($uri)) {
$uri = request_uri();
}
$context = fillpdf_link_to_stub_context($uri);
fillpdf_merge_pdf($context['fid'], $context['nids'], $context['webforms'], $context['sample'], $context['force_download'], FALSE, $context['flatten'], TRUE, $context['uc_order_ids'], $context['uc_order_product_ids'], $context['entity_ids']);
// Normally, fillpdf_merge_pdf() calls fillpdf_merge_perform_pdf_action()
// which send the PDF to the browser and calls drupal_exit(). If there is an
// error, it will not exit. Returning empty string ensures that a page is
// rendered on which to display error messages.
return '';
}