aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-06 17:40:52 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-06 17:40:52 +0000
commitf411bafa56c557a28f37d6b392579bc05c12ab62 (patch)
tree027ef609a476328e78173bc268f7bbeb8304fa4e /engine/lib/sites.php
parentefdd2b782479d7385eff0fece80316e0fab46fa9 (diff)
downloadelgg-f411bafa56c557a28f37d6b392579bc05c12ab62.tar.gz
elgg-f411bafa56c557a28f37d6b392579bc05c12ab62.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Delete site implemented git-svn-id: https://code.elgg.org/elgg/trunk@104 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index d497acfcc..991493c8a 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -557,7 +557,6 @@
*/
function update_site($id, $title, $description, $url, $owner_id, $access_id)
{
-
global $CONFIG;
$id = (int)$id;
@@ -580,8 +579,11 @@
*/
function delete_site($site_id)
{
- // TODO : Writeme
- throw new NotImplementedException("Writeme!");
+ global $CONFIG;
+
+ $site_id = (int)$site_id;
+
+ return delete_data("DELETE from {$CONFIG->dbprefix}sites where id=$site_id");
}
/**