function commerce_billy_pdf in Commerce Billy 7
Page callback for invoice PDF.
7 string references to 'commerce_billy_pdf'
- commerce_billy_pdf_admin_form in modules/
commerce_billy_pdf/ commerce_billy_pdf.admin.inc - Admin settings form for invoice pdf.
- commerce_billy_pdf_dompdf in modules/
commerce_billy_pdf/ commerce_billy_pdf.module - DOMPDF converter
- commerce_billy_pdf_html in modules/
commerce_billy_pdf/ commerce_billy_pdf.module - Helper function that returns the generated HTML for the invoice PDFs.
- commerce_billy_pdf_menu in modules/
commerce_billy_pdf/ commerce_billy_pdf.module - Implements hook_menu().
- commerce_billy_pdf_theme in modules/
commerce_billy_pdf/ commerce_billy_pdf.module - Implements hook_theme().
File
- modules/
commerce_billy_pdf/ commerce_billy_pdf.module, line 142 - Commerce Billy module file.
Code
function commerce_billy_pdf($order) {
$html = commerce_billy_pdf_html($order);
$filename = preg_replace('/[^a-z0-9]/', '_', drupal_strtolower('invoice_' . $order->order_number));
commerce_billy_pdf_output($html, $filename);
// print $html;
drupal_exit();
}