From 855d0fe0ac956199e3e6f10c4f22d4e12ceaf11c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 14 Sep 2019 10:22:03 -0400 Subject: [PATCH] Reword event docs to clarify priority vs weight --- Civi/API/Events.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Civi/API/Events.php b/Civi/API/Events.php index 9051f75d2b..25907b71c9 100644 --- a/Civi/API/Events.php +++ b/Civi/API/Events.php @@ -33,8 +33,7 @@ namespace Civi\API; * event is dispatched. * * Event subscribers which are concerned about the order of execution should assign - * a weight to their subscription (such as W_EARLY, W_MIDDLE, or W_LATE). - * W_LATE). + * a priority to their subscription (such as W_EARLY, W_MIDDLE, or W_LATE). */ class Events { @@ -78,17 +77,17 @@ class Events { const EXCEPTION = 'civi.api.exception'; /** - * Weight - Early + * Priority - Higher numbers execute earlier */ const W_EARLY = 100; /** - * Weight - Middle + * Priority - Middle */ const W_MIDDLE = 0; /** - * Weight - Late + * Priority - Lower numbers execute later */ const W_LATE = -100; -- 2.25.1