Skip to content

Commit

Permalink
Move menu definitions to eventcart extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Jul 19, 2020
1 parent 29823d8 commit e6bc512
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 57 deletions.
70 changes: 13 additions & 57 deletions CRM/Event/xml/Menu/Event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@
<weight>399</weight>
</item>
<item>
<path>civicrm/admin/options/conference_slot</path>
<title>Conference Slot Labels</title>
<page_callback>CRM_Admin_Page_Options</page_callback>
<desc>Define conference slots and labels.</desc>
<access_arguments>administer CiviCRM,access CiviEvent</access_arguments>
<adminGroup>CiviEvent</adminGroup>
<weight>415</weight>
<path>civicrm/admin/options/conference_slot</path>
<title>Conference Slot Labels</title>
<page_callback>CRM_Admin_Page_Options</page_callback>
<desc>Define conference slots and labels.</desc>
<access_arguments>administer CiviCRM,access CiviEvent</access_arguments>
<adminGroup>CiviEvent</adminGroup>
<weight>415</weight>
</item>
<item>
<path>civicrm/admin/setting/preferences/event</path>
Expand Down Expand Up @@ -225,12 +225,12 @@
<weight>960</weight>
</item>
<item>
<path>civicrm/event/manage/conference</path>
<title>Conference Slots</title>
<page_callback>CRM_Event_Form_ManageEvent_Conference</page_callback>
<access_arguments>access CiviEvent</access_arguments>
<is_ssl>true</is_ssl>
<weight>950</weight>
<path>civicrm/event/manage/conference</path>
<title>Conference Slots</title>
<page_callback>CRM_Event_Form_ManageEvent_Conference</page_callback>
<access_arguments>access CiviEvent</access_arguments>
<is_ssl>true</is_ssl>
<weight>950</weight>
</item>
<item>
<path>civicrm/event/add</path>
Expand Down Expand Up @@ -297,50 +297,6 @@
<page_callback>CRM_Core_Page_AJAX_Location::getLocBlock</page_callback>
<access_arguments>access CiviEvent</access_arguments>
</item>
<item>
<path>civicrm/ajax/event/add_participant_to_cart</path>
<page_callback>CRM_Event_Cart_Page_CheckoutAJAX::add_participant_to_cart</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
</item>
<item>
<path>civicrm/ajax/event/remove_participant_from_cart</path>
<page_callback>CRM_Event_Cart_Page_CheckoutAJAX::remove_participant_from_cart</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
</item>
<item>
<path>civicrm/event/add_to_cart</path>
<title>Add Event To Cart</title>
<page_callback>CRM_Event_Cart_Page_AddToCart</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
<is_ssl>false</is_ssl>
</item>
<item>
<path>civicrm/event/cart_checkout</path>
<title>Cart Checkout</title>
<page_callback>CRM_Event_Cart_Controller_Checkout</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
<is_ssl>true</is_ssl>
</item>
<item>
<path>civicrm/event/remove_from_cart</path>
<title>Remove From Cart</title>
<page_callback>CRM_Event_Cart_Page_RemoveFromCart</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
<is_ssl>false</is_ssl>
</item>
<item>
<path>civicrm/event/view_cart</path>
<title>View Cart</title>
<page_callback>CRM_Event_Cart_Page_ViewCart</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
<is_ssl>false</is_ssl>
</item>
<item>
<path>civicrm/event/participant/feeselection</path>
<title>Change Registration Selections</title>
Expand Down
48 changes: 48 additions & 0 deletions ext/eventcart/xml/Menu/Eventcart.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="iso-8859-1" ?>

<menu>
<item>
<path>civicrm/ajax/event/add_participant_to_cart</path>
<page_callback>CRM_Event_Cart_Page_CheckoutAJAX::add_participant_to_cart</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
</item>
<item>
<path>civicrm/ajax/event/remove_participant_from_cart</path>
<page_callback>CRM_Event_Cart_Page_CheckoutAJAX::remove_participant_from_cart</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
</item>
<item>
<path>civicrm/event/add_to_cart</path>
<title>Add Event To Cart</title>
<page_callback>CRM_Event_Cart_Page_AddToCart</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
<is_ssl>false</is_ssl>
</item>
<item>
<path>civicrm/event/cart_checkout</path>
<title>Cart Checkout</title>
<page_callback>CRM_Event_Cart_Controller_Checkout</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
<is_ssl>true</is_ssl>
</item>
<item>
<path>civicrm/event/remove_from_cart</path>
<title>Remove From Cart</title>
<page_callback>CRM_Event_Cart_Page_RemoveFromCart</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
<is_ssl>false</is_ssl>
</item>
<item>
<path>civicrm/event/view_cart</path>
<title>View Cart</title>
<page_callback>CRM_Event_Cart_Page_ViewCart</page_callback>
<access_callback>1</access_callback>
<is_public>true</is_public>
<is_ssl>false</is_ssl>
</item>
</menu>

0 comments on commit e6bc512

Please sign in to comment.