adding theming

This commit is contained in:
2017-06-27 12:08:23 +10:00
parent b2f1372950
commit b1b900dfb3
4 changed files with 118 additions and 1 deletions

View File

@@ -822,11 +822,25 @@ function booking_node_access($node, $op, $account) {
/**
* Implementation of hook_theme().
*/
function booking_theme() {
function booking_theme($existing, $type, $theme, $path) {
if($type == 'module')
{
return array(
'booking_details' => array('arguments' => array('node' => NULL)),
'booking_htmlmail_template' => array(
'variables' => array('module' => NULL, 'key' => NULL, 'recipient' => NULL, 'subject' => NULL, 'body' => NULL, 'message' => array()),
'path' => drupal_get_path('module', 'booking'). '/theme',
'template' => 'mimemail-message' // extension of .tpl.php automatically added
),
);
}
return array(); //will raise fatal error if void
/*
return array(
'booking_details' => array('arguments' => array('node' => NULL)),
//'booking_price_admin' => array('arguments' => array('form' => NULL))
);
*/
}
/**