'qs' => 'action=copy&gid=%%id%%',
'title' => ts('Make a Copy of CiviCRM Contribution Page'),
'extra' => 'onclick = "return confirm(\'' . $copyExtra . '\');"',
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::COPY),
],
CRM_Core_Action::DISABLE => [
'name' => ts('Disable'),
'title' => ts('Disable'),
'ref' => 'crm-enable-disable',
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DISABLE),
],
CRM_Core_Action::ENABLE => [
'name' => ts('Enable'),
'ref' => 'crm-enable-disable',
'title' => ts('Enable'),
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ENABLE),
],
CRM_Core_Action::DELETE => [
'name' => ts('Delete'),
'qs' => 'action=delete&reset=1&id=%%id%%',
'title' => ts('Delete Custom Field'),
'extra' => 'onclick = "return confirm(\'' . $deleteExtra . '\');"',
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DELETE),
],
];
}
'url' => $urlString . 'settings',
'qs' => $urlParams,
'uniqueName' => 'settings',
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ADD),
],
CRM_Core_Action::UPDATE => [
'name' => ts('Contribution Amounts'),
'url' => $urlString . 'amount',
'qs' => $urlParams,
'uniqueName' => 'amount',
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::UPDATE),
],
CRM_Core_Action::VIEW => [
'name' => ts('Membership Settings'),
'url' => $urlString . 'membership',
'qs' => $urlParams,
'uniqueName' => 'membership',
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::VIEW),
],
CRM_Core_Action::EXPORT => [
'name' => ts('Thank-you and Receipting'),
'url' => $urlString . 'thankyou',
'qs' => $urlParams,
'uniqueName' => 'thankyou',
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::EXPORT),
],
CRM_Core_Action::BASIC => [
'name' => ts('Tell a Friend'),
'url' => $urlString . 'friend',
'qs' => $urlParams,
'uniqueName' => 'friend',
+ 'weight' => 10,
],
CRM_Core_Action::PROFILE => [
'name' => ts('Include Profiles'),
'url' => $urlString . 'custom',
'qs' => $urlParams,
'uniqueName' => 'custom',
+ 'weight' => 20,
],
CRM_Core_Action::MAP => [
'name' => ts('Contribution Widget'),
'url' => $urlString . 'widget',
'qs' => $urlParams,
'uniqueName' => 'widget',
+ 'weight' => 30,
],
CRM_Core_Action::FOLLOWUP => [
'name' => ts('Premiums'),
'url' => $urlString . 'premium',
'qs' => $urlParams,
'uniqueName' => 'premium',
+ 'weight' => 40,
],
CRM_Core_Action::ADVANCED => [
'name' => ts('Personal Campaign Pages'),
'url' => $urlString . 'pcp',
'qs' => $urlParams,
'uniqueName' => 'pcp',
+ 'weight' => 50,
],
];
$context = [
'qs' => $urlParams,
'fe' => TRUE,
'uniqueName' => 'live_page',
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::RENEW),
],
CRM_Core_Action::PREVIEW => [
'name' => ts('Test-drive'),
// Addresses https://lab.civicrm.org/dev/core/issues/658
'fe' => TRUE,
'uniqueName' => 'test_drive',
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::PREVIEW),
],
];
}
'url' => $urlString,
'qs' => "{$urlParams}&receive_date_low={$monthDate}&receive_date_high={$now}",
'uniqueName' => 'current_month_to_date',
+ 'weight' => 10,
],
CRM_Core_Action::REVERT => [
'name' => ts('Fiscal Year-To-Date'),
'url' => $urlString,
'qs' => "{$urlParams}&receive_date_low={$yearDate}&receive_date_high={$yearNow}",
'uniqueName' => 'fiscal_year_to_date',
+ 'weight' => 20,
],
CRM_Core_Action::BROWSE => [
'name' => ts('Cumulative'),
'url' => $urlString,
'qs' => "{$urlParams}",
'uniqueName' => 'cumulative',
+ 'weight' => 30,
],
];
}