From 8a0191c808013706a800b6a8536f57b6a2ba0bcb Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 6 Sep 2023 19:32:49 +1200 Subject: [PATCH] Add weights to Manage Event links --- CRM/Event/Page/ManageEvent.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CRM/Event/Page/ManageEvent.php b/CRM/Event/Page/ManageEvent.php index 4206ebdf4a..bee5e2ae2f 100644 --- a/CRM/Event/Page/ManageEvent.php +++ b/CRM/Event/Page/ManageEvent.php @@ -59,17 +59,20 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page { 'name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Event'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DISABLE), ], CRM_Core_Action::ENABLE => [ 'name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Event'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ENABLE), ], CRM_Core_Action::DELETE => [ 'name' => ts('Delete'), 'url' => CRM_Utils_System::currentPath(), 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Delete Event'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DELETE), ], CRM_Core_Action::COPY => [ 'name' => ts('Copy'), @@ -77,6 +80,7 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page { 'qs' => 'reset=1&action=copy&id=%%id%%', 'extra' => 'onclick = "return confirm(\'' . $copyExtra . '\');"', 'title' => ts('Copy Event'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::COPY), ], ]; } @@ -91,6 +95,7 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page { 'title' => ts('Register Participant'), 'url' => 'civicrm/participant/add', 'qs' => 'reset=1&action=add&context=standalone&eid=%%id%%', + 'weight' => -30, ], 'event_info' => [ 'name' => ts('Event Info'), @@ -98,6 +103,7 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page { 'url' => 'civicrm/event/info', 'qs' => 'reset=1&id=%%id%%', 'fe' => TRUE, + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::VIEW), ], 'online_registration_test' => [ 'name' => ts('Registration (Test-drive)'), @@ -105,6 +111,7 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page { 'url' => 'civicrm/event/register', 'qs' => 'reset=1&action=preview&id=%%id%%', 'fe' => TRUE, + 'weight' => 30, ], 'online_registration_live' => [ 'name' => ts('Registration (Live)'), @@ -112,6 +119,7 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page { 'url' => 'civicrm/event/register', 'qs' => 'reset=1&id=%%id%%', 'fe' => TRUE, + 'weight' => 40, ], ]; } -- 2.25.1