|
|
|
@ -61,7 +61,7 @@ function reserve_form_reserve_reservation_form_alter(array &$form, FormStateInte
|
|
|
|
|
$year = reserve_which_year($month, $day); |
|
|
|
|
$yyyymmdd = date('Y-m-d', strtotime($year . '-' . $month . '-' . $day)); |
|
|
|
|
$d = $yyyymmdd . ' 00:00:00'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (reserve_daily_max_exceeded($yyyymmdd)) { |
|
|
|
|
$form = array(); |
|
|
|
|
$form['message'] = [ |
|
|
|
@ -90,6 +90,7 @@ function reserve_form_reserve_reservation_form_alter(array &$form, FormStateInte
|
|
|
|
|
]; |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$entity = \Drupal::entityTypeManager()->getStorage($entity_type)->load($eid); |
|
|
|
|
$bundle = $entity->bundle(); |
|
|
|
|
$date = date('l, M d, Y', strtotime($d)); |
|
|
|
|