|
|
@ -233,6 +233,7 @@ function reserve_form_reserve_reservation_form_alter(array &$form, FormStateInte |
|
|
|
<h2 class="reservation-h2">' . t('Reservation booking for') . ':</h2><div><strong>' . $bundleName . ': ' . $entity->label() . '</strong></div> |
|
|
|
<h2 class="reservation-h2">' . t('Reservation booking for') . ':</h2><div><strong>' . $bundleName . ': ' . $entity->label() . '</strong></div> |
|
|
|
<div><strong>' . t('Date') . ': ' . $date . '</strong></div> |
|
|
|
<div><strong>' . t('Date') . ': ' . $date . '</strong></div> |
|
|
|
<div><strong>' . t('Time') . ': ' . $time . '</strong></div> |
|
|
|
<div><strong>' . t('Time') . ': ' . $time . '</strong></div> |
|
|
|
|
|
|
|
<div><strong>' . t('Length') . ': ' . $lengthDisplay . '</strong></div> |
|
|
|
<br>', |
|
|
|
<br>', |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
@ -271,7 +272,7 @@ function reserve_form_reserve_reservation_form_alter(array &$form, FormStateInte |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function reserve_form_reserve_reservation_delete_form_alter(array &$form, FormStateInterface $form_state) { |
|
|
|
function reserve_form_reserve_reservation_delete_form_alter(array &$form, FormStateInterface $form_state) { |
|
|
|
// Retrieve an array which contains the path pieces. |
|
|
|
// Retrieve an array which contains the path pieces. |
|
|
|
$refer_path = $_SERVER["HTTP_REFERER"]; |
|
|
|
$refer_path = $_SERVER['HTTP_REFERER']; |
|
|
|
$path_args = explode('/', $refer_path); |
|
|
|
$path_args = explode('/', $refer_path); |
|
|
|
|
|
|
|
|
|
|
|
$month = $path_args[6]; |
|
|
|
$month = $path_args[6]; |
|
|
|