X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FAddress.php;h=bff434e2ccbe29c8888c517a39530c2065191013;hb=562207255b86c7f932643761d094cf050af09bf3;hp=3ac7d5602380a8090413ff6b8d64739104120f8d;hpb=8960f050bc875db30ec426da1c95a281e5d2bb50;p=civicrm-core.git diff --git a/api/v3/Address.php b/api/v3/Address.php index 3ac7d56023..bff434e2cc 100644 --- a/api/v3/Address.php +++ b/api/v3/Address.php @@ -100,6 +100,21 @@ function _civicrm_api3_address_create_spec(&$params) { $params['contact_id']['api.required'] = 1; $params['country'] = array('title' => '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', + ); } /**