+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
/**
- * This api exposes CiviCRM phone.
+ * This api exposes CiviCRM phone records.
*
* @package CiviCRM_APIv3
- * @subpackage API_Phone
- *
*/
/**
* Array per getfields metadata.
*
* @return array
- * Array of newly created phone property values.
*/
function civicrm_api3_phone_create($params) {
return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'Phone');
* The metadata is used for setting defaults, documentation & validation.
*
* @param array $params
- * Array or parameters determined by getfields.
+ * Array of parameters determined by getfields.
*/
function _civicrm_api3_phone_create_spec(&$params) {
$params['contact_id']['api.required'] = 1;
* civicrm_api('Phone','Get') to retrieve one or more phones is implemented by
* function civicrm_api3_phone_get ($params) into the file Phone/Get.php
* Could have been implemented here in this file too, but we moved it to illustrate the feature with a real usage.
- *
*/