<?php
-// $Id$
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* @package CiviCRM_APIv3
* @subpackage API_Website
*
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* @version $Id: Website.php 2011-03-16 ErikHommel $
*/
-require_once 'CRM/Core/BAO/Website.php';
-
/**
* Add an Website for a contact
*
$values = array();
_civicrm_api3_object_to_array($websiteBAO, $values[$websiteBAO->id]);
return civicrm_api3_create_success($values, $params, 'website', 'get');
+}
- }
-/*
+/**
* Adjust Metadata for Create action
*
* The metadata is used for setting defaults, documentation & validation
* @access public
*/
function civicrm_api3_website_get($params) {
- return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+ return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, TRUE, 'website');
}