X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FLocationType.php;h=3c7990ffa7d0e346609f9c97e20eb4aa90f20801;hb=ace09e1280e28e7a8f9a8657b2c6b88bdb6c0389;hp=e03f7dbbe40c8d30a5d46d6a368d91836369eeaa;hpb=383164729863d20ddbd409b5dd6ff3561d8dbe07;p=civicrm-core.git diff --git a/api/v3/LocationType.php b/api/v3/LocationType.php index e03f7dbbe4..3c7990ffa7 100644 --- a/api/v3/LocationType.php +++ b/api/v3/LocationType.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -26,27 +26,18 @@ */ /** - * File for the CiviCRM APIv3 location type functions + * This api exposes CiviCRM LocationType records. * * @package CiviCRM_APIv3 - * @subpackage API_LocationType - * - * @copyright CiviCRM LLC (c) 2004-2014 - * @version $Id: LocationType.php 2012-11-02 Jon Goldberg $ */ /** - * Add a Location Type - * - * Allowed @params array keys are: - * - * @example LocationTypeCreate.php Standard Create Example + * Add a LocationType. * * @param array $params * * @return array - * API result array - * {@getfields email_create} + * API result array. */ function civicrm_api3_location_type_create($params) { //set display_name equal to name if it's not defined @@ -63,7 +54,7 @@ function civicrm_api3_location_type_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_location_type_create_spec(&$params) { $params['is_active']['api.default'] = 1; @@ -71,31 +62,25 @@ function _civicrm_api3_location_type_create_spec(&$params) { } /** - * Deletes an existing Location Type + * Deletes an existing LocationType. * * @param array $params * - * @example LocationTypeDelete.php Standard Delete Example - * * @return array - * API result array - * {@getfields LocationType_delete} + * API result array. */ function civicrm_api3_location_type_delete($params) { return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params); } /** - * Retrieve one or more Location Types - * - * @example LocationTypeGet.php Standard Get Example + * Retrieve one or more LocationTypes. * * @param array $params * An associative array of name/value pairs. * * @return array - * api result - * {@getfields LocationType_get} + * API result array. */ function civicrm_api3_location_type_get($params) { return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);