Auto email people moving from bookedin/waiting list to not-coming list
This commit is contained in:
@@ -1209,7 +1209,10 @@ function _booking_update($node) {
|
||||
if ($previous_status->booking_status == 1 && $node->booking_status == 3)
|
||||
{
|
||||
watchdog('booking', 'Detected person moving from Booked In list to No Longer Coming');
|
||||
|
||||
|
||||
//let this person know their request has been processed
|
||||
_booking_demoted_to_notcoming_email($node->nid);
|
||||
|
||||
//check if there is room on the booked-in list
|
||||
if (_booking_check_bookings_full() == False)
|
||||
{
|
||||
@@ -1229,6 +1232,13 @@ function _booking_update($node) {
|
||||
else
|
||||
watchdog('booking', 'Still no room on the booked in list though.');
|
||||
}
|
||||
//if someone is moving to the not-coming list from the waiting list
|
||||
elseif ($previous_status->booking_status == 2 && $node->booking_status == 3)
|
||||
{
|
||||
watchdog('booking', 'Detected person moving from waiting list to No Longer Coming');
|
||||
//let this person know their request has been processed
|
||||
_booking_demoted_to_notcoming_email($node->nid);
|
||||
}
|
||||
//if we're not automatically sending emails on registration
|
||||
//and someone moved from not-paid to booked-in (ie, manual payment process)
|
||||
elseif (variable_get('booking_auto_confirm_email', 0) == 0 && $previous_status->booking_status == 0 && $node->booking_status == 1)
|
||||
|
Reference in New Issue
Block a user