adding theming
This commit is contained in:
@@ -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))
|
||||
);
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user