test adding hook
This commit is contained in:
@@ -10,6 +10,11 @@ function booking_admin() {
|
|||||||
//regenerate all our menu hooks when loading this form
|
//regenerate all our menu hooks when loading this form
|
||||||
menu_rebuild();
|
menu_rebuild();
|
||||||
|
|
||||||
|
//dodgy hack for testing
|
||||||
|
mailsystem_set(array(
|
||||||
|
'booking' => 'BookingMailSystem',
|
||||||
|
));
|
||||||
|
|
||||||
//create the mysql view booking_person_view if necessary
|
//create the mysql view booking_person_view if necessary
|
||||||
try {
|
try {
|
||||||
$sqlview_check = db_query("SELECT * FROM {booking_person_view}")->fetchAssoc();
|
$sqlview_check = db_query("SELECT * FROM {booking_person_view}")->fetchAssoc();
|
||||||
|
@@ -828,7 +828,7 @@ function booking_theme($existing, $type, $theme, $path) {
|
|||||||
return array(
|
return array(
|
||||||
'booking_details' => array('arguments' => array('node' => NULL)),
|
'booking_details' => array('arguments' => array('node' => NULL)),
|
||||||
'booking_htmlmail_template' => array(
|
'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',
|
'path' => drupal_get_path('module', 'booking'). '/theme',
|
||||||
'template' => 'mimemail-message' // extension of .tpl.php automatically added
|
'template' => 'mimemail-message' // extension of .tpl.php automatically added
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user