From ae0d8fe986218116baba7fe0e20b26789bbe5e24 Mon Sep 17 00:00:00 2001 From: icewing Date: Mon, 10 Mar 2008 10:49:18 +0000 Subject: Marcus Povey * Remove site metadata git-svn-id: https://code.elgg.org/elgg/trunk@129 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/sites.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'engine/lib') 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; } /** -- cgit v1.2.3