From ef74a52e9f316891cd4971dd28e2ddd8aa7754e0 Mon Sep 17 00:00:00 2001 From: Marc Michalsky forumZFD Date: Thu, 15 Apr 2021 20:06:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20remove=20TwingleEvent.create=20A?= =?UTF-8?q?PI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TwingleEvents are created only by event initiators via the embedded form --- api/v3/TwingleEvent/Create.php | 45 ---------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 api/v3/TwingleEvent/Create.php diff --git a/api/v3/TwingleEvent/Create.php b/api/v3/TwingleEvent/Create.php deleted file mode 100644 index 0ae5390..0000000 --- a/api/v3/TwingleEvent/Create.php +++ /dev/null @@ -1,45 +0,0 @@ - ['id' => 12, 'name' => 'Twelve'], - 34 => ['id' => 34, 'name' => 'Thirty four'], - 56 => ['id' => 56, 'name' => 'Fifty six'], - ); - // ALTERNATIVE: $returnValues = []; // OK, success - // ALTERNATIVE: $returnValues = ["Some value"]; // OK, return a single value - - // Spec: civicrm_api3_create_success($values = 1, $params = [], $entity = NULL, $action = NULL) - return civicrm_api3_create_success($returnValues, $params, 'TwingleEvent', 'Create'); - } - else { - throw new API_Exception(/*error_message*/ 'Everyone knows that the magicword is "sesame"', /*error_code*/ 'magicword_incorrect'); - } -}