Flush all system caches
*/
function system_flush_example(){
-$params = array(
+$params = array(
'version' => 3,
);
*/
function system_flush_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
demonstrates use of Return as an array
*/
function tag_get_example(){
-$params = array(
+$params = array(
'id' => 7,
- 'name' => 'New Tag330036',
+ 'name' => 'New Tag325818',
'version' => 3,
- 'return' => array(
+ 'return' => array(
'0' => 'name',
),
);
*/
function tag_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 7,
- 'values' => array(
- '7' => array(
+ 'values' => array(
+ '7' => array(
'id' => '7',
- 'name' => 'New Tag330036',
+ 'name' => 'New Tag325818',
),
),
);
*/
function tag_create_example(){
-$params = array(
+$params = array(
'name' => 'New Tag3',
'description' => 'This is description for New Tag 02',
'version' => 3,
*/
function tag_create_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 8,
- 'values' => array(
- '8' => array(
+ 'values' => array(
+ '8' => array(
'id' => '8',
'name' => 'New Tag3',
'description' => 'This is description for New Tag 02',
'is_tagset' => '',
'used_for' => 'civicrm_contact',
'created_id' => '',
- 'created_date' => '20130204224540',
+ 'created_date' => '20120130621222105',
),
),
);
*/
function tag_delete_example(){
-$params = array(
+$params = array(
'id' => 11,
'version' => 3,
);
*/
function tag_delete_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
*/
function tag_get_example(){
-$params = array(
+$params = array(
'id' => 6,
- 'name' => 'New Tag31473',
+ 'name' => 'New Tag320719',
'version' => 3,
);
*/
function tag_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 6,
- 'values' => array(
- '6' => array(
+ 'values' => array(
+ '6' => array(
'id' => '6',
- 'name' => 'New Tag31473',
- 'description' => 'This is description for New Tag 29030',
+ 'name' => 'New Tag320719',
+ 'description' => 'This is description for New Tag 30716',
'is_selectable' => '1',
'is_reserved' => 0,
'is_tagset' => 0,
'used_for' => 'civicrm_contact',
- 'created_date' => '2013-02-04 22:45:40',
+ 'created_date' => '20120130621222105',
),
),
);
*/
function uf_field_create_example(){
-$params = array(
+$params = array(
'field_name' => 'phone',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
*/
function uf_field_create_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'id' => '1',
'uf_group_id' => '11',
'field_name' => 'phone',
*/
function uf_field_delete_example(){
-$params = array(
- 'version' => 3,
+$params = array(
'field_id' => 1,
+ 'version' => 3,
+ 'debug' => 0,
);
$result = civicrm_api( 'uf_field','delete',$params );
*/
function uf_field_delete_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
*/
function uf_field_get_example(){
-$params = array(
+$params = array(
'version' => 3,
+ 'debug' => 0,
);
$result = civicrm_api( 'uf_field','get',$params );
*/
function uf_field_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'id' => '1',
'uf_group_id' => '11',
'field_name' => 'phone',
*/
function uf_field_replace_example(){
-$params = array(
+$params = array(
'version' => 3,
'uf_group_id' => 11,
'option.autoweight' => '',
- 'values' => array(
- '0' => array(
+ 'values' => array(
+ '0' => array(
'field_name' => 'first_name',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
'is_searchable' => 1,
'is_active' => 1,
),
- '1' => array(
+ '1' => array(
'field_name' => 'country',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
'is_active' => 1,
'location_type_id' => 1,
),
- '2' => array(
+ '2' => array(
'field_name' => 'phone',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
*/
function uf_field_replace_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 3,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'id' => '1',
'uf_group_id' => '11',
'field_name' => 'first_name',
'is_reserved' => '',
'is_multi_summary' => '',
),
- '2' => array(
+ '2' => array(
'id' => '2',
'uf_group_id' => '11',
'field_name' => 'country',
'is_reserved' => '',
'is_multi_summary' => '',
),
- '3' => array(
+ '3' => array(
'id' => '3',
'uf_group_id' => '11',
'field_name' => 'phone',
*/
function uf_group_create_example(){
-$params = array(
+$params = array(
'add_captcha' => 1,
'add_contact_to_group' => 2,
'cancel_URL' => 'http://example.org/cancel',
*/
function uf_group_create_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 12,
- 'values' => array(
- '12' => array(
+ 'values' => array(
+ '12' => array(
'id' => '12',
'is_active' => 0,
'group_type' => 'Individual,Contact',
'is_reserved' => '1',
'name' => 'Test_Group_12',
'created_id' => '69',
- 'created_date' => '20090627000000',
+ 'created_date' => '20120130621222105',
'is_proximity_search' => '',
),
),
*/
function uf_group_delete_example(){
-$params = array(
+$params = array(
'add_captcha' => 1,
'add_contact_to_group' => 2,
'cancel_URL' => 'http://example.org/cancel',
*/
function uf_group_delete_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
*/
function uf_group_get_example(){
-$params = array(
+$params = array(
'add_captcha' => 1,
'add_contact_to_group' => 2,
'cancel_URL' => 'http://example.org/cancel',
*/
function uf_group_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 12,
- 'values' => array(
- '12' => array(
+ 'values' => array(
+ '12' => array(
'id' => '12',
'is_active' => 0,
'group_type' => 'Individual,Contact',
'is_reserved' => '1',
'name' => 'Test_Group_12',
'created_id' => '69',
- 'created_date' => '2009-06-27 00:00:00',
+ 'created_date' => '20120130621222105',
'is_proximity_search' => 0,
),
),
*/
function uf_join_create_example(){
-$params = array(
+$params = array(
'module' => 'CiviContribute',
'entity_table' => 'civicrm_contribution_page',
'entity_id' => 1,
*/
function uf_join_create_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 0,
- 'values' => array(
- '0' => array(
+ 'values' => array(
+ '0' => array(
'id' => '1',
'is_active' => '1',
'module' => 'CiviContribute',
*/
function uf_join_get_example(){
-$params = array(
+$params = array(
'entity_table' => 'civicrm_contribution_page',
'entity_id' => 1,
'version' => 3,
*/
function uf_join_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '0' => array(
+ 'values' => array(
+ '0' => array(
'id' => '1',
'is_active' => '1',
'module' => 'CiviContribute',
*/
function website_create_example(){
-$params = array(
+$params = array(
'version' => 3,
'contact_id' => 3,
'url' => 'website.com',
*/
function website_create_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'id' => '1',
'contact_id' => '3',
'url' => 'website.com',
*/
function website_delete_example(){
-$params = array(
+$params = array(
'version' => 3,
'id' => 1,
);
*/
function website_delete_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
*/
function website_get_example(){
-$params = array(
+$params = array(
'version' => 3,
'contact_id' => 1,
'url' => 'website.com',
*/
function website_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'id' => '1',
'contact_id' => '1',
'url' => 'website.com',