Add comment field and tweak email logging

This commit is contained in:
2015-09-17 09:44:47 +10:00
parent 512366deb9
commit 270dd5b43f
5 changed files with 60 additions and 20 deletions

View File

@@ -105,8 +105,7 @@ function _valid_australian_mobile_number($input)
{
if (preg_match('/^\s*(?:\+61|61|0061|0)(\d{3})\s*(\d{3})\s*(\d{3})\s*$/', $input, $matches))
{
watchdog('booking', 'Australian Mobile Number "!passnum" validates since it passed our regexp',
array('!passnum' => $input));
//watchdog('booking', 'Australian Mobile Number "!passnum" validates since it passed our regexp', array('!passnum' => $input));
return TRUE;
}
else
@@ -126,14 +125,14 @@ function _booking_check_bookings_full()
//check the number of people registered against the defined max
if ($waitinglist_query->num_ppl >= variable_get('booking_regn_limit', 350))
{
watchdog('booking', 'There are !num people booked in, which is greater than or equal to the limit of !limit.',
array('!num' => $waitinglist_query->num_ppl, '!limit' => variable_get('booking_regn_limit', 350) ));
//watchdog('booking', 'There are !num people booked in, which is greater than or equal to the limit of !limit.',
// array('!num' => $waitinglist_query->num_ppl, '!limit' => variable_get('booking_regn_limit', 350) ));
return true;
}
else
{
watchdog('booking', 'There are !num people booked in, which is less than the limit of !limit.',
array('!num' => $waitinglist_query->num_ppl, '!limit' => variable_get('booking_regn_limit', 350) ));
//watchdog('booking', 'There are !num people booked in, which is less than the limit of !limit.',
// array('!num' => $waitinglist_query->num_ppl, '!limit' => variable_get('booking_regn_limit', 350) ));
return false;
}
}