6 function tag_create_example(){
9 'description' => 'This is description for New Tag 02',
13 $result = civicrm_api( 'tag','create',$params );
19 * Function returns array of result expected from previous function
21 function tag_create_expectedresult(){
23 $expectedResult = array(
32 'description' => 'This is description for New Tag 02',
34 'is_selectable' => '',
37 'used_for' => 'civicrm_contact',
39 'created_date' => '20130204224540',
44 return $expectedResult ;
49 * This example has been generated from the API test suite. The test that created it is called
51 * testCreate and can be found in
52 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/TagTest.php
54 * You can see the outcome of the API tests at
55 * http://tests.dev.civicrm.org/trunk/results-api_v3
57 * To Learn about the API read
58 * http://book.civicrm.org/developer/current/techniques/api/
60 * and review the wiki at
61 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
63 * Read more about testing here
64 * http://wiki.civicrm.org/confluence/display/CRM/Testing
66 * API Standards documentation:
67 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards