This commit is contained in:
2013-12-09 18:01:21 +11:00
parent b8b9fa4085
commit 3328a9aaa0
2 changed files with 42 additions and 10 deletions

View File

@@ -13,14 +13,13 @@
$language = user_preferred_language($user);
//$account = $user;
//flush cache for this node
entity_get_controller('node')->resetCache(array($nid));
//load the node matching this id
//TODO: Put this back in after testing
$node = node_load($nid);
//TODO: remove this after testing
//$node = $nid
watchdog('booking', 'Sending email: @info', array('@info' => var_export($node, TRUE)));
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;