function commerce_billy_pdf_theme in Commerce Billy 7
Implements hook_theme().
File
- modules/
commerce_billy_pdf/ commerce_billy_pdf.module, line 104 - Commerce Billy module file.
Code
function commerce_billy_pdf_theme() {
// Register the template specific for the commerce pdf order.
$items['commerce_order__commerce_order__pdf'] = array(
'render element' => 'elements',
'template' => 'commerce_order--commerce_order--pdf',
'path' => drupal_get_path('module', 'commerce_billy_pdf') . '/templates',
);
$items['commerce_order__commerce_order__canceled'] = array(
'render element' => 'elements',
'template' => 'commerce_order--commerce_order--canceled',
'path' => drupal_get_path('module', 'commerce_billy_pdf') . '/templates',
);
$items['commerce_billy_pdf_page'] = array(
'variables' => array(
'viewed_orders' => array(),
'inline_css' => '',
),
'template' => 'commerce_billy_pdf_page',
'path' => drupal_get_path('module', 'commerce_billy_pdf') . '/templates',
);
return $items;
}