X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Fexamples%2FMessageTemplate%2FCreate.php;h=094118233901e9664e5cc2f2249446a30327f012;hb=5be22f3986348bf32b8c7c59ba6d7f0641621aca;hp=0cea8626732cd976d471d60502d528cabda14d72;hpb=5671179aa7ec5fbfea415b2264c53537d6da7488;p=civicrm-core.git diff --git a/api/v3/examples/MessageTemplate/Create.php b/api/v3/examples/MessageTemplate/Create.php index 0cea862673..0941182339 100644 --- a/api/v3/examples/MessageTemplate/Create.php +++ b/api/v3/examples/MessageTemplate/Create.php @@ -1,6 +1,6 @@ getErrorCode(); $errorData = $e->getExtraParams(); return array( - 'error' => $errorMessage, + 'is_error' => 1, + 'error_message' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData, ); @@ -67,11 +68,10 @@ function message_template_create_expectedresult() { return $expectedResult; } -/** +/* * This example has been generated from the API test suite. -* The test that created it is called -* testCreate -* and can be found in +* The test that created it is called "testCreate" +* and can be found at: * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MessageTemplateTest.php * * You can see the outcome of the API tests at