From b085d07577d7dd714808a87c8310d6686d79e203 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Sun, 19 Jul 2020 11:46:04 +0100 Subject: [PATCH] Move menu definitions to eventcart extension --- CRM/Event/xml/Menu/Event.xml | 70 ++++++---------------------- ext/eventcart/xml/Menu/Eventcart.xml | 48 +++++++++++++++++++ 2 files changed, 61 insertions(+), 57 deletions(-) create mode 100644 ext/eventcart/xml/Menu/Eventcart.xml diff --git a/CRM/Event/xml/Menu/Event.xml b/CRM/Event/xml/Menu/Event.xml index fda18a1b92..105ef9c087 100644 --- a/CRM/Event/xml/Menu/Event.xml +++ b/CRM/Event/xml/Menu/Event.xml @@ -128,13 +128,13 @@ 399 - civicrm/admin/options/conference_slot - Conference Slot Labels - CRM_Admin_Page_Options - Define conference slots and labels. - administer CiviCRM,access CiviEvent - CiviEvent - 415 + civicrm/admin/options/conference_slot + Conference Slot Labels + CRM_Admin_Page_Options + Define conference slots and labels. + administer CiviCRM,access CiviEvent + CiviEvent + 415 civicrm/admin/setting/preferences/event @@ -225,12 +225,12 @@ 960 - civicrm/event/manage/conference - Conference Slots - CRM_Event_Form_ManageEvent_Conference - access CiviEvent - true - 950 + civicrm/event/manage/conference + Conference Slots + CRM_Event_Form_ManageEvent_Conference + access CiviEvent + true + 950 civicrm/event/add @@ -297,50 +297,6 @@ CRM_Core_Page_AJAX_Location::getLocBlock access CiviEvent - - civicrm/ajax/event/add_participant_to_cart - CRM_Event_Cart_Page_CheckoutAJAX::add_participant_to_cart - 1 - true - - - civicrm/ajax/event/remove_participant_from_cart - CRM_Event_Cart_Page_CheckoutAJAX::remove_participant_from_cart - 1 - true - - - civicrm/event/add_to_cart - Add Event To Cart - CRM_Event_Cart_Page_AddToCart - 1 - true - false - - - civicrm/event/cart_checkout - Cart Checkout - CRM_Event_Cart_Controller_Checkout - 1 - true - true - - - civicrm/event/remove_from_cart - Remove From Cart - CRM_Event_Cart_Page_RemoveFromCart - 1 - true - false - - - civicrm/event/view_cart - View Cart - CRM_Event_Cart_Page_ViewCart - 1 - true - false - civicrm/event/participant/feeselection Change Registration Selections diff --git a/ext/eventcart/xml/Menu/Eventcart.xml b/ext/eventcart/xml/Menu/Eventcart.xml new file mode 100644 index 0000000000..838014501a --- /dev/null +++ b/ext/eventcart/xml/Menu/Eventcart.xml @@ -0,0 +1,48 @@ + + + + + civicrm/ajax/event/add_participant_to_cart + CRM_Event_Cart_Page_CheckoutAJAX::add_participant_to_cart + 1 + true + + + civicrm/ajax/event/remove_participant_from_cart + CRM_Event_Cart_Page_CheckoutAJAX::remove_participant_from_cart + 1 + true + + + civicrm/event/add_to_cart + Add Event To Cart + CRM_Event_Cart_Page_AddToCart + 1 + true + false + + + civicrm/event/cart_checkout + Cart Checkout + CRM_Event_Cart_Controller_Checkout + 1 + true + true + + + civicrm/event/remove_from_cart + Remove From Cart + CRM_Event_Cart_Page_RemoveFromCart + 1 + true + false + + + civicrm/event/view_cart + View Cart + CRM_Event_Cart_Page_ViewCart + 1 + true + false + + -- 2.25.1