test adding hook

This commit is contained in:
2017-06-27 12:29:28 +10:00
parent d4ac574142
commit 0fe7189f10
2 changed files with 6 additions and 1 deletions

View File

@@ -9,6 +9,11 @@ function booking_admin() {
//regenerate all our menu hooks when loading this form
menu_rebuild();
//dodgy hack for testing
mailsystem_set(array(
'booking' => 'BookingMailSystem',
));
//create the mysql view booking_person_view if necessary
try {

View File

@@ -828,7 +828,7 @@ function booking_theme($existing, $type, $theme, $path) {
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()),
'variables' => array('module' => NULL, 'key' => NULL, 'css' => 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
),