'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'),
'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),
],
];
}
'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'),
'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)'),
'url' => 'civicrm/event/register',
'qs' => 'reset=1&action=preview&id=%%id%%',
'fe' => TRUE,
+ 'weight' => 30,
],
'online_registration_live' => [
'name' => ts('Registration (Live)'),
'url' => 'civicrm/event/register',
'qs' => 'reset=1&id=%%id%%',
'fe' => TRUE,
+ 'weight' => 40,
],
];
}