X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FAddress.php;h=a00126d4fd3980aa1091a32672fae1150c2ece1a;hb=68d6b897b10ec82e276280d07d9614c79561639d;hp=1cad60f408822250449158075b9cb9e76149bac5;hpb=11e09c59b8b15670d5b6eddf8d90aaf465472c54;p=civicrm-core.git diff --git a/api/v3/Address.php b/api/v3/Address.php index 1cad60f408..a00126d4fd 100644 --- a/api/v3/Address.php +++ b/api/v3/Address.php @@ -1,11 +1,10 @@ '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', + ); } /**