remove room allocation functions replaced by new autocomplete functions

This commit is contained in:
Nathan Coad
2016-05-16 11:55:11 +10:00
parent 32d2e1692d
commit 0274c5fde1
7 changed files with 1042 additions and 1452 deletions

View File

@@ -673,6 +673,12 @@ function booking_tokens($type, $tokens, array $data = array(), array $options =
return $replacements;
}
/**
* Function to define generic site-wide tokens relating to the bookings module
*
* @param none
* @return associative array containing tokens
*/
function booking_define_tokens()
{
global $event;
@@ -687,7 +693,7 @@ function booking_define_tokens()
$tokens = array();
$tokens['eventname'] = $event->booking_eventname;
$tokens['eventdates'] = _date_range_to_string(date("Y-m-d", $booking_times->booking_event_start),
date("Y-m-d", $booking_times->booking_event_end));
date("Y-m-d", $booking_times->booking_event_end));
$tokens['contact-us'] = l('contact us', 'contact-us');
$tokens['contact-email'] = variable_get('booking_contact_email');
$tokens['regn-count'] = $regncount_query->num_ppl;
@@ -695,7 +701,12 @@ function booking_define_tokens()
return $tokens;
}
/**
* Function to define tokens related to a specific registration from the bookings module
*
* @param $node - object representing the registration
* @return associative array containing tokens for the specified person
*/
function booking_define_personspecific_tokens($node)
{
global $event;
@@ -741,7 +752,6 @@ function booking_define_personspecific_tokens($node)
$tokens['balance-payment-link'] = url('balance/' . $tempid, array('absolute' => TRUE));
$tokens['confirm-payment-link'] = url('confirm/' . $tempid, array('absolute' => TRUE));
$tokens['paypal-total-amount'] = _booking_amount_owing($node, $amount_paid);
//$tokens['paypal-total-amount'] = _booking_amount_owing($node->nid, $amount_paid);
$tokens['paypal-deposit-amount'] = _booking_deposit_amount($node, TRUE);
$tokens['regn-summary'] = _booking_details_email_summary($node);