X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FAddress.php;h=bff434e2ccbe29c8888c517a39530c2065191013;hb=4b41d25939dcf66dcfdf64e02240fa1fa21b7bc1;hp=1cad60f408822250449158075b9cb9e76149bac5;hpb=8d33e12be1cfc6226cada7978de1306924fb6040;p=civicrm-core.git diff --git a/api/v3/Address.php b/api/v3/Address.php index 1cad60f408..bff434e2cc 100644 --- a/api/v3/Address.php +++ b/api/v3/Address.php @@ -1,9 +1,8 @@ 'Name or 2-letter abbreviation of country. Looked up in civicrm_country table'); $params['street_parsing'] = array('title' => 'optional param to indicate you want the street_address field parsed into individual params'); + $params['world_region'] = array( + 'title' => ts('World Region'), + 'name' => 'world_region', + ); +} +/** + * Adjust Metadata for Get action + * + * @param array $params array or parameters determined by getfields + */ +function _civicrm_api3_address_get_spec(&$params) { + $params['world_region'] = array( + 'title' => ts('World Region'), + 'name' => 'world_region', + ); } /**