Add travel info to booking node view

This commit is contained in:
2014-02-28 17:17:18 +11:00
parent 2a773cee4d
commit 397448d47c
6 changed files with 55 additions and 20 deletions

View File

@@ -19,7 +19,7 @@
//load the node matching this id
$node = node_load($nid);
watchdog('booking', 'Sending notification email to !first !last', array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname));
watchdog('booking', 'Sending registration email to !first !last', array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname));
//waiting list has already been calculated, stored in node
$waiting_list = $node->booking_status == 2 ? TRUE : FALSE;
@@ -62,6 +62,8 @@
global $event;
global $user;
$language = user_preferred_language($user);
watchdog('booking', 'Sending notification email to !first !last', array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname));
//calculate the from email address
$from = t('!event Registrations <!email>', array('!event' => $event->booking_eventname,