Add some more weight fields
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 5 Oct 2023 23:58:13 +0000 (12:58 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 5 Oct 2023 23:58:13 +0000 (12:58 +1300)
CRM/Campaign/Page/SurveyType.php

index d1e972df52a73b6f2a68f07a843fad44c968a73b..b72daac2d8f5420df8c779c97527f2bbdeee1d41 100644 (file)
@@ -92,22 +92,26 @@ class CRM_Campaign_Page_SurveyType extends CRM_Core_Page_Basic {
           'url' => 'civicrm/admin/campaign/surveyType',
           'qs' => 'action=update&id=%%id%%&reset=1',
           'title' => ts('Edit %1', [1 => $this->_gName]),
+          'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::UPDATE),
         ],
         CRM_Core_Action::DISABLE => [
           'name' => ts('Disable'),
           'ref' => 'crm-enable-disable',
           'title' => ts('Disable %1', [1 => $this->_gName]),
+          'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DISABLE),
         ],
         CRM_Core_Action::ENABLE => [
           'name' => ts('Enable'),
           'ref' => 'crm-enable-disable',
           'title' => ts('Enable %1', [1 => $this->_gName]),
+          'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ENABLE),
         ],
         CRM_Core_Action::DELETE => [
           'name' => ts('Delete'),
           'url' => 'civicrm/admin/campaign/surveyType',
           'qs' => 'action=delete&id=%%id%%',
           'title' => ts('Delete %1 Type', [1 => $this->_gName]),
+          'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DELETE),
         ],
       ];
     }