* The main purpose of the API is to provide integrators a level of stability not provided by
* the core code or schema - this means we have to provide support for api calls (where possible)
* across schema changes.
+ * @param $params
*/
function _civicrm_api3_event_create_legacy_support_42(&$params) {
if (!empty($params['payment_processor_id'])) {
* The main purpose of the API is to provide integrators a level of stability not provided by
* the core code or schema - this means we have to provide support for api calls (where possible)
* across schema changes.
+ * @param $event
+ * @param $event_id
*/
function _civicrm_api3_event_get_legacy_support_42(&$event, $event_id) {
if (!empty($event[$event_id]['payment_processor'])) {
*
* This API is used for deleting a event
*
- * @param array $paramsArray containing event_id to be deleted.
- * Array containing event_id to be deleted.
+ * @param $params
+ * @return array
*
- * @return boolean
- * true if success, error otherwise
* @access public
* note API has legacy support for 'event_id'
* {@getfields event_delete}
*/
function civicrm_api3_event_delete($params) {
-
return CRM_Event_BAO_Event::del($params['id']) ? civicrm_api3_create_success() : civicrm_api3_create_error(ts('Error while deleting event'));
}
/*