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'); - } -}