INFRA-132 - api/ - phpcbf
[civicrm-core.git] / api / v3 / Country.php
index dce4272e0ad58259e9cde6ccc48c887f8ba6c209..f7577e06953640b0f5ba9321be11e76cd0120c2a 100644 (file)
@@ -3,9 +3,9 @@
 
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -33,7 +33,7 @@
  * @package CiviCRM_APIv3
  * @subpackage API_Country
  *
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * @version $Id: Country.php 2011-02-16 ErikHommel $
  */
 
@@ -56,21 +56,19 @@ function civicrm_api3_country_create($params) {
 
 /**
  * Adjust Metadata for Create action
- * 
+ *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_country_create_spec(&$params) {
-  // TODO a 'clever' default should be introduced
-  $params['is_primary']['api.default'] = 0;
-  $params['country']['api.required'] = 1;
-  $params['contact_id']['api.required'] = 1;
+  $params['name']['api.required'] = 1;
 }
 
 /**
  * Deletes an existing Country
  *
- * @param  array  $params
+ * @param array $params
  *
  * @example CountryDelete.php Standard Delete Example
  *
@@ -85,12 +83,13 @@ function civicrm_api3_country_delete($params) {
 /**
  * Retrieve one or more countrys
  *
- * @param  array input parameters
+ * @param array input parameters
  *
  *
  * @example CountryGet.php Standard Get Example
  *
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array api result array
  * {@getfields country_get}
@@ -100,4 +99,3 @@ function civicrm_api3_country_get($params) {
 
   return _civicrm_api3_basic_get(_civicrm_api3_get_DAO(__FUNCTION__), $params);
 }
-