public function remove_participant_from_cart() { $id = CRM_Utils_Request::retrieve('id', 'Integer'); $participant = CRM_Event_Cart_BAO_MerParticipant::get_by_id($id); $participant->delete(); CRM_Utils_System::civiExit(); }
function remove_participant_from_cart() { $participant = CRM_Event_Cart_BAO_MerParticipant::get_by_id($_GET['id']); $participant->delete(); CRM_Utils_System::civiExit(); }