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