/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
* {@getfields phone_create}
* @example PhoneCreate.php
*
- * @param $params
+ * @param array $params
*
- * @return array of newly created phone property values.
+ * @return array
+ * of newly created phone property values.
* @access public
*/
function civicrm_api3_phone_create($params) {
- return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+ return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'Phone');
}
/**
* 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_phone_create_spec(&$params) {
$params['contact_id']['api.required'] = 1;
/**
* Deletes an existing Phone
*
- * @param array $params
+ * @param array $params
*
- * @return array Api Result
+ * @return array
+ * Api Result
* {@getfields phone_delete}
* @example PhoneDelete.php
* @access public
* Could have been implemented here in this file too, but we moved it to illustrate the feature with a real usage.
*
*/
-