aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-22 22:31:15 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-22 22:31:15 +0000
commit63722e11e656df0328f0051f68ad993e04b8947f (patch)
treed72695545fd14cf19ce8016c7273d985ecdf4e14 /engine/lib
parentf17c0d01f4c5ae3869fd10121d2b659c313b0a26 (diff)
downloadelgg-63722e11e656df0328f0051f68ad993e04b8947f.tar.gz
elgg-63722e11e656df0328f0051f68ad993e04b8947f.tar.bz2
deprecated some sites functions that were never supported or fully implemented
git-svn-id: http://code.elgg.org/elgg/trunk@7421 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/sites.php20
1 files changed, 8 insertions, 12 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index cf838e720..ac048c26b 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -82,20 +82,11 @@ function create_site_entity($guid, $name, $description, $url) {
}
/**
- * THIS FUNCTION IS DEPRECATED.
- *
- * Delete a site's extra data.
- *
- * @todo remove
- *
- * @param int $guid Site guid
- *
- * @deprecated 1.5 Or so?
+ * @deprecated 1.6
* @return 1
*/
function delete_site_entity($guid) {
- system_message(elgg_echo('deprecatedfunction', array('delete_user_entity')));
-
+ elgg_deprecated_notice("delete_site_entity has been deprecated", 1.6);
return 1; // Always return that we have deleted one row in order to not break existing code.
}
@@ -256,8 +247,10 @@ function get_site_objects($site_guid, $subtype = "", $limit = 10, $offset = 0) {
* @param int $collection_guid Collection GUID
*
* @return mixed
+ * @deprecated 1.8
*/
function add_site_collection($site_guid, $collection_guid) {
+ elgg_deprecated_notice("add_site_collection has been deprecated", 1.8);
global $CONFIG;
$site_guid = (int)$site_guid;
@@ -272,10 +265,11 @@ function add_site_collection($site_guid, $collection_guid) {
* @param int $site_guid Site GUID
* @param int $collection_guid Collection GUID
*
- * @todo probably remove.
* @return mixed
+ * @deprecated 1.8
*/
function remove_site_collection($site_guid, $collection_guid) {
+ elgg_deprecated_notice("remove_site_collection has been deprecated", 1.8);
$site_guid = (int)$site_guid;
$collection_guid = (int)$collection_guid;
@@ -291,8 +285,10 @@ function remove_site_collection($site_guid, $collection_guid) {
* @param int $offset Offset
*
* @return mixed
+ * @deprecated 1.8
*/
function get_site_collections($site_guid, $subtype = "", $limit = 10, $offset = 0) {
+ elgg_deprecated_notice("get_site_collections has been deprecated", 1.8);
$site_guid = (int)$site_guid;
$subtype = sanitise_string($subtype);
$limit = (int)$limit;