From a4782047d2bcef701edd8135ab74e5b09e553870 Mon Sep 17 00:00:00 2001 From: ppound Date: Mon, 2 Nov 2020 15:22:05 -0400 Subject: [PATCH] cleanup comments --- src/Plugin/RulesAction/BatEventValidation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Plugin/RulesAction/BatEventValidation.php b/src/Plugin/RulesAction/BatEventValidation.php index 3e41e52..120bcbe 100644 --- a/src/Plugin/RulesAction/BatEventValidation.php +++ b/src/Plugin/RulesAction/BatEventValidation.php @@ -13,7 +13,7 @@ use Drupal\Core\Entity\EntityInterface; use Symfony\Component\HttpFoundation\RedirectResponse; /** - * Provides an action to trigger a custom publishing option. + * Provides an action to Validate BAT Events using role based rules. * * @RulesAction( * id = "rules_roblib_bee_limits_validate", @@ -103,6 +103,7 @@ class BatEventValidation extends RulesActionBase { } $max_bookings_allowed = $this->getMaxBookingsAllowed($user); if($max_bookings_allowed != -1 && $active_bookings >= $max_bookings_allowed){ + // TODO: don't use depracated function drupal_set_message(t('Rule Hit Reservation exceeded your maximum number of active bookings allowed. You currently have @active_bookings active reservations, You are allowed @max_bookings .', array('@active_bookings' => $active_bookings,