set mail_system variable
This commit is contained in:
@@ -11,9 +11,12 @@ function booking_admin() {
|
||||
menu_rebuild();
|
||||
|
||||
//dodgy hack for testing
|
||||
variable_set('mail_system', array('default-system' => 'DefaultMailSystem', 'booking' => 'BookingMailSystem'));
|
||||
/*
|
||||
mailsystem_set(array(
|
||||
'booking' => 'BookingMailSystem',
|
||||
));
|
||||
*/
|
||||
|
||||
//create the mysql view booking_person_view if necessary
|
||||
try {
|
||||
|
@@ -695,6 +695,7 @@ function booking_uninstall() {
|
||||
*/
|
||||
function booking_enable() {
|
||||
drupal_set_message($message = t('The Booking System module was successfully enabled.'), $type = 'status');
|
||||
variable_set('mail_system', array('default-system' => 'DefaultMailSystem', 'booking' => 'BookingMailSystem'));
|
||||
//let MIME Mail know that we can send html emails
|
||||
mailsystem_set(array(
|
||||
'booking' => 'BookingMailSystem',
|
||||
@@ -706,6 +707,7 @@ function booking_enable() {
|
||||
*/
|
||||
function booking_disable() {
|
||||
drupal_set_message($message = t('The Booking System module was successfully disabled.'), $type = 'status');
|
||||
variable_set('mail_system', array('default-system' => 'DefaultMailSystem'));
|
||||
//clean up our entry about mailsystems
|
||||
mailsystem_clear(array(
|
||||
'booking' => 'BookingMailSystem',
|
||||
|
Reference in New Issue
Block a user