|
|
|
@ -43,6 +43,7 @@ class CalendarController extends ControllerBase {
|
|
|
|
|
$config = \Drupal::config('reserve.settings'); |
|
|
|
|
// likely no need for this as not used anywhere else; but maybe for external modules |
|
|
|
|
global $yyyy_mmdd; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//$entity_type = ebundle_split($ebundle, 'type'); |
|
|
|
|
//$bundle = ebundle_split($ebundle, 'bundle'); |
|
|
|
@ -75,6 +76,9 @@ class CalendarController extends ControllerBase {
|
|
|
|
|
if ($yyyy_mmdd == $dates[0]['yyyymmdd']) { |
|
|
|
|
$dates[0]['selected'] = TRUE; |
|
|
|
|
$dates[0]['today'] = TRUE; |
|
|
|
|
\Drupal::messenger()->addWarning(t('You have chosen a date to far in the ' |
|
|
|
|
. 'future. Please choose a date within 14 days of today. The Calendar' |
|
|
|
|
. ' view below has defaulted to todays date.')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// a bit hacky; but we need to store what the calendar is using for its date so we can use this in theme functions later |
|
|
|
|