aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 10:49:18 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 10:49:18 +0000
commitae0d8fe986218116baba7fe0e20b26789bbe5e24 (patch)
tree8f527e8d72bd811661bab3570ccdfcbe04c2a3c9 /engine/lib/sites.php
parent76abeb49eb60bdecc39e8298da26f5941f0e9daf (diff)
downloadelgg-ae0d8fe986218116baba7fe0e20b26789bbe5e24.tar.gz
elgg-ae0d8fe986218116baba7fe0e20b26789bbe5e24.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Remove site metadata git-svn-id: https://code.elgg.org/elgg/trunk@129 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index 32f320f59..db234c151 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -419,8 +419,15 @@
*/
function remove_site_metadata($site_id, $name)
{
- // TODO : Writeme
- throw new NotImplementedException("Writeme!");
+ $result = get_metadatas($site_id, 'site', $name);
+
+ if ($result)
+ {
+ foreach ($result as $r)
+ delete_metadata($r->id);
+ }
+
+ return false;
}
/**