Finally add a customisable page for /bookingfinal

This commit is contained in:
2015-03-09 17:02:38 +11:00
parent c3e33db5ba
commit 98c4176337
5 changed files with 55 additions and 15 deletions

View File

@@ -50,6 +50,26 @@ function booking_register_page() {
return $return_array;
}
/**
* Landing page after returning from paypal
*/
function booking_payment_completed_page() {
//get some configuration information
global $event;
$output = "";
$return_array = array();
//set the page title
$bookingTitle = !empty($event->booking_eventname) ? $event->booking_eventname : 'Event';
drupal_set_title($bookingTitle . ' Registration Completed');
$output = token_replace(variable_get('booking_regn_completed_page'), booking_define_tokens());
$return_array[] = array('paragraph' => array('#type' => 'markup', '#markup' => $output));
return $return_array;
}
function booking_form($node, &$form_state, $inserting = FALSE) {
global $event;