aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-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;
}
/**