theme tweaks
This commit is contained in:
@@ -824,20 +824,23 @@ function booking_node_access($node, $op, $account) {
|
||||
* Implementation of hook_theme().
|
||||
*/
|
||||
function booking_theme($existing, $type, $theme, $path) {
|
||||
if($type == 'module')
|
||||
{
|
||||
if($type == 'module') {
|
||||
$theme_path = drupal_get_path('module', 'booking'). '/theme';
|
||||
// if our more heavily customised template exists, use that, otherwise fall back to the generic one
|
||||
$template_file = is_file($theme_path . '/mimemail-message-registration_mail.tpl.php') ? '/mimemail-message-registration_mail' : '/mimemail-message';
|
||||
|
||||
return array(
|
||||
'booking_details' => array('arguments' => array('node' => NULL)),
|
||||
'booking_details' => array('arguments' => array('node' => NULL)),
|
||||
'booking_htmlmail_template' => array(
|
||||
'variables' => array('module' => NULL, 'key' => NULL, 'css' => NULL, 'recipient' => NULL, 'subject' => NULL, 'body' => NULL, 'message' => array()),
|
||||
'path' => drupal_get_path('module', 'booking'). '/theme',
|
||||
'path' => $theme_path,
|
||||
'template' => 'mimemail-message' // extension of .tpl.php automatically added
|
||||
),
|
||||
'booking_htmlmail_registration_mail' => array(
|
||||
'variables' => array('subject' => NULL, 'body' => NULL),
|
||||
'path' => drupal_get_path('module', 'booking'). '/theme',
|
||||
'path' => $theme_path,
|
||||
'image_path' => drupal_get_path('module', 'booking'). '/images',
|
||||
'template' => 'mimemail-message-registration_mail' // extension of .tpl.php automatically added
|
||||
'template' => $template_file,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user