From: larssandergreen Date: Wed, 13 Sep 2023 16:43:39 +0000 (-0600) Subject: Weights for custom field groups page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0e7bd9c0d2fa9436318e27826a04678a30c52390;p=civicrm-core.git Weights for custom field groups page --- diff --git a/CRM/Custom/Page/Field.php b/CRM/Custom/Page/Field.php index e7c3c86feb..8d6b6aefb6 100644 --- a/CRM/Custom/Page/Field.php +++ b/CRM/Custom/Page/Field.php @@ -55,28 +55,33 @@ class CRM_Custom_Page_Field extends CRM_Core_Page { 'url' => 'civicrm/admin/custom/group/field/update', 'qs' => 'action=update&reset=1&gid=%%gid%%&id=%%id%%', 'title' => ts('Edit Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::UPDATE), ], CRM_Core_Action::BROWSE => [ 'name' => ts('Edit Multiple Choice Options'), 'url' => 'civicrm/admin/custom/group/field/option', 'qs' => 'reset=1&action=browse&gid=%%gid%%&fid=%%id%%', 'title' => ts('List Custom Options'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::BROWSE), ], CRM_Core_Action::PREVIEW => [ 'name' => ts('Preview Field Display'), 'url' => 'civicrm/admin/custom/group/preview', 'qs' => 'action=preview&reset=1&fid=%%id%%', 'title' => ts('Preview Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::PREVIEW), ], CRM_Core_Action::DISABLE => [ 'name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DISABLE), ], CRM_Core_Action::ENABLE => [ 'name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ENABLE), ], CRM_Core_Action::EXPORT => [ 'name' => ts('Move'), @@ -84,12 +89,14 @@ class CRM_Custom_Page_Field extends CRM_Core_Page { 'class' => 'small-popup', 'qs' => 'reset=1&fid=%%id%%', 'title' => ts('Move Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::EXPORT), ], CRM_Core_Action::DELETE => [ 'name' => ts('Delete'), 'url' => 'civicrm/admin/custom/group/field/delete', 'qs' => 'reset=1&id=%%id%%', 'title' => ts('Delete Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DELETE), ], ]; }