start adding html email template customisability
This commit is contained in:
@@ -736,6 +736,39 @@ function booking_update_7249() {
|
||||
_booking_node_create_mysqlview();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create table to store configuration for HTML email templates
|
||||
*/
|
||||
function booking_update_7250() {
|
||||
/*
|
||||
* Add fields for this:
|
||||
Up to 3 instances of
|
||||
- link text
|
||||
- link URL
|
||||
|
||||
Up to 4 instances of
|
||||
- social media title
|
||||
- social media icon URL
|
||||
- social media link
|
||||
*/
|
||||
$booking_mailtemplate_fields = array(
|
||||
'fields' => array(
|
||||
'mid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
||||
'booking_mailtemplate_media_type' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE),
|
||||
'booking_mailtemplate_link_title' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE),
|
||||
'booking_mailtemplate_icon_url' => array('type' => 'varchar', 'length' => '1000', 'not null' => FALSE),
|
||||
'booking_mailtemplate_link_url' => array('type' => 'varchar', 'length' => '1000', 'not null' => FALSE),
|
||||
'booking_mailtemplate_link_active' => array('type' => 'varchar', 'length' => '1', 'not null' => FALSE),
|
||||
),
|
||||
'primary key' => array('mid'),
|
||||
);
|
||||
|
||||
db_create_table('booking_mailtemplate_fields', $booking_mailtemplate_fields);
|
||||
|
||||
//update the view to match the new table definition
|
||||
_booking_node_create_mysqlview();
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hook_install().
|
||||
*/
|
||||
|
Reference in New Issue
Block a user