aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index 991493c8a..294ed9c8f 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -518,8 +518,19 @@
*/
function remove_site_annotations($site_id, $name)
{
- // TODO : Writeme
- throw new NotImplementedException("Writeme!");
+ $annotations = get_annotations($site_id, 'site', $name);
+
+ if($annotations)
+ {
+ foreach ($annotations as $a)
+ {
+ delete_annotation($a->id);
+ }
+
+ return true;
+ }
+
+ return false;
}
/**