aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-06 17:50:28 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-06 17:50:28 +0000
commit4318e9697253546e8bb4f76166ac92ee6918e94e (patch)
treee4c2f40030d93781109e21f56101af58e8c8482b /engine/lib/sites.php
parentf411bafa56c557a28f37d6b392579bc05c12ab62 (diff)
downloadelgg-4318e9697253546e8bb4f76166ac92ee6918e94e.tar.gz
elgg-4318e9697253546e8bb4f76166ac92ee6918e94e.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Added delete annotations, fixed error on annotation search (missing params) git-svn-id: https://code.elgg.org/elgg/trunk@105 36083f99-b078-4883-b0ff-0f9b5a30f544
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;
}
/**