'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', ); } /** * Deletes an existing Address * * @param array $params * * {@getfields address_delete} * {@example AddressDelete.php 0} * * @return array api result array * @access public */ function civicrm_api3_address_delete($params) { return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params); } /** * Retrieve one or more addresses on address_id, contact_id, street_name, city * or a combination of those * * @param mixed[] (reference ) input parameters * * {@example AddressGet.php 0} * @param array $params an associative array of name/value pairs. * * @return array details of found addresses else error * {@getfields address_get} * @access public */ function civicrm_api3_address_get(&$params) { return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, TRUE, 'Address'); }