'Street Address Parsing', 'description' => 'Optional param to indicate you want the street_address field parsed into individual params', 'type' => CRM_Utils_Type::T_BOOLEAN, ); $params['world_region'] = array( 'title' => ts('World Region'), 'name' => 'world_region', 'type' => CRM_Utils_Type::T_TEXT, ); } /** * Adjust Metadata for Get action. * * @param array $params * Array of parameters determined by getfields. */ function _civicrm_api3_address_get_spec(&$params) { $params['world_region'] = array( 'title' => ts('World Region'), 'name' => 'world_region', 'type' => CRM_Utils_Type::T_TEXT, ); } /** * Delete an existing Address. * * @param array $params * Array per getfields metadata. * * @return array * api result array */ function civicrm_api3_address_delete($params) { return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params); } /** * Retrieve one or more addresses. * * @param array $params * Array per getfields metadata. * * @return array * details of found addresses else error */ function civicrm_api3_address_get(&$params) { return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, TRUE, 'Address'); }