Browse Source

changes requested by liquidcms

d9
ppound 3 years ago
parent
commit
96baeaab63
  1. 3
      reservation.inc
  2. 1
      reserve.info.yml

3
reservation.inc

@ -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];

1
reserve.info.yml

@ -1,7 +1,6 @@
name: Reserve name: Reserve
type: module type: module
description: Reservation system. description: Reservation system.
core: 8.x
package: Reserve package: Reserve
core_version_requirement: ^8 || ^9 core_version_requirement: ^8 || ^9
dependencies: dependencies:

Loading…
Cancel
Save