tweak lucky number function
This commit is contained in:
@@ -1291,7 +1291,23 @@ function booking_payment_completed_page()
|
||||
global $event;
|
||||
$output = "";
|
||||
$return_array = array();
|
||||
|
||||
/*
|
||||
$parameters = drupal_get_query_parameters();
|
||||
|
||||
//check if we got a transaction token from paypal
|
||||
if (isset($parameters['token'])) {
|
||||
//check to make sure the value is something we're expecting
|
||||
$paypal_token = $parameters['token'];
|
||||
if (! preg_match('/^[0-9A-Fa-f\-]+$/', $paypal_token)) {
|
||||
//parameter from url is not what we were expecting so ignore it and just use the site-wide tokens for this page
|
||||
$tokens = booking_define_tokens();
|
||||
}
|
||||
else {
|
||||
//query the payments table to find the attendee that this paypal token belongs to
|
||||
|
||||
}
|
||||
}
|
||||
*/
|
||||
//set the page title
|
||||
$bookingTitle = !empty($event->booking_eventname) ? $event->booking_eventname : 'Event';
|
||||
drupal_set_title($bookingTitle . ' Registration Completed');
|
||||
|
Reference in New Issue
Block a user