From 3d38bfc31caaab25ddc87fe9424a948ee20cff8f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 6 Sep 2023 19:18:32 +1200 Subject: [PATCH] Define weight for links on extensions page --- CRM/Admin/Page/Extensions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Admin/Page/Extensions.php b/CRM/Admin/Page/Extensions.php index e845def26c..d04ad328eb 100644 --- a/CRM/Admin/Page/Extensions.php +++ b/CRM/Admin/Page/Extensions.php @@ -66,6 +66,7 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic { 'url' => 'civicrm/admin/extensions', 'qs' => 'action=add&id=%%id%%&key=%%key%%', 'title' => ts('Install'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ADD), ], CRM_Core_Action::ENABLE => [ 'name' => ts('Enable'), @@ -73,24 +74,28 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic { 'qs' => 'action=enable&id=%%id%%&key=%%key%%', 'ref' => 'enable-action', 'title' => ts('Enable'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ENABLE), ], CRM_Core_Action::DISABLE => [ 'name' => ts('Disable'), 'url' => 'civicrm/admin/extensions', 'qs' => 'action=disable&id=%%id%%&key=%%key%%', 'title' => ts('Disable'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DISABLE), ], CRM_Core_Action::DELETE => [ 'name' => ts('Uninstall'), 'url' => 'civicrm/admin/extensions', 'qs' => 'action=delete&id=%%id%%&key=%%key%%', 'title' => ts('Uninstall Extension'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DELETE), ], CRM_Core_Action::UPDATE => [ 'name' => ts('Download'), 'url' => 'civicrm/admin/extensions', 'qs' => 'action=update&id=%%id%%&key=%%key%%', 'title' => ts('Download Extension'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::UPDATE), ], ]; } -- 2.25.1