start adding html email template customisability

This commit is contained in:
2017-09-15 12:54:33 +10:00
parent e1cb00858f
commit 76ac3fbead
4 changed files with 175 additions and 1 deletions

View File

@@ -752,8 +752,21 @@ function booking_menu() {
'access arguments' => array('access administration pages'),
'file' => 'booking.earlyaccess_admin.inc',
'type' => MENU_LOCAL_ACTION,
);
);
//manage HTML email template if enabled
if (variable_get('booking_enable_html_mail', 0) == 1)) {
$items['admin/config/booking/mailtemplate'] = array(
'title' => 'Booking module HTML email',
'description' => 'Configure the look of HTMl emails for the Booking module',
'page callback' => 'drupal_get_form',
'page arguments' => array('booking_mailtemplate_form'),
'access arguments' => array('access administration pages'),
'file' => 'booking.mailtemplate_admin.inc',
'type' => MENU_NORMAL_ITEM,
);
}
//the paypal IPN
$items[BOOKING_PAYPAL_IPN_PATH] = array(
'type' => MENU_CALLBACK,