This commit is contained in:
2017-06-27 20:28:46 +10:00
parent d0f8d44516
commit 4768fe7ba1
3 changed files with 35 additions and 4 deletions

View File

@@ -651,6 +651,15 @@ function booking_update_7242() {
_booking_node_create_mysqlview();
}
/**
* Add support for html emails
*/
function booking_update_7243() {
$current = variable_get('mail_system', array('default-system' => 'DefaultMailSystem'));
$addition = array('booking' => 'BookingMailSystem');
variable_set('mail_system', array_merge($current, $addition));
}
/**
* Implementation of hook_install().
*/
@@ -692,6 +701,7 @@ function booking_uninstall() {
/**
* Implement hook_enable()
* Based on https://drupal.stackexchange.com/questions/23821/email-a-whole-node-including-template-contents
*/
function booking_enable() {
drupal_set_message($message = t('The Booking System module was successfully enabled.'), $type = 'status');