X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FEmail.php;h=3f03ffb26519923fa74c652a556971e75ec4db23;hb=b081365f52508bfd1fb0d3d15f3a0d48f5e9df12;hp=b1cee2718797c30176ba7b08c3b054d011699227;hpb=40491a7f5b4b52439c453168661177d9a7f61257;p=civicrm-core.git diff --git a/api/v3/Email.php b/api/v3/Email.php index b1cee27187..3f03ffb265 100644 --- a/api/v3/Email.php +++ b/api/v3/Email.php @@ -26,23 +26,16 @@ */ /** - * File for the CiviCRM APIv3 email functions + * This api exposes CiviCRM email. * * @package CiviCRM_APIv3 - * @subpackage API_Email - * - * @copyright CiviCRM LLC (c) 2004-2014 - * @version $Id: Email.php 2011-02-16 ErikHommel $ */ /** - * Add an Email for a contact - * - * Allowed @params array keys are: - * - * @example EmailCreate.php Standard Create Example + * Add an Email for a contact. * * @param array $params + * Array per getfields metadata. * * @return array * API result array @@ -57,7 +50,7 @@ function civicrm_api3_email_create($params) { * 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_email_create_spec(&$params) { // TODO a 'clever' default should be introduced @@ -67,24 +60,23 @@ function _civicrm_api3_email_create_spec(&$params) { } /** - * Deletes an existing Email + * Deletes an existing Email. * * @param array $params + * Array per getfields metadata. * - * @example EmailDelete.php Standard Delete Example - * - * @return bool - * | error true if successfull, error otherwise + * @return array + * API result array. */ function civicrm_api3_email_delete($params) { return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params); } /** - * Retrieve one or more emails + * Retrieve one or more emails. * * @param array $params - * An associative array of name/value pairs. + * Array per getfields metadata. * * @return array * api result array