aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-25 12:28:30 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-25 12:28:30 +0000
commit5439a340e623ccf17ce2a6b59cf31862beb2ba68 (patch)
tree22d045d3eaee543c7face939e41c561e1df77dcd /engine/lib
parent83d3c58b377dc0ab0ac4eb56dd5aeaac3c6fe7c8 (diff)
downloadelgg-5439a340e623ccf17ce2a6b59cf31862beb2ba68.tar.gz
elgg-5439a340e623ccf17ce2a6b59cf31862beb2ba68.tar.bz2
Adding an annotation triggers an 'annotate' event
git-svn-id: https://code.elgg.org/elgg/trunk@1122 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/annotations.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php
index 4dcf9b588..97ccb6772 100644
--- a/engine/lib/annotations.php
+++ b/engine/lib/annotations.php
@@ -172,6 +172,9 @@
$name = add_metastring($name);
if (!$name) return false;
+ $entity = get_entity($entity_guid);
+ system_log($entity, 'annotate');
+
// If ok then add it
return insert_data("INSERT into {$CONFIG->dbprefix}annotations (entity_guid, name_id, value_id, value_type, owner_guid, time_created, access_id) VALUES ($entity_guid,'$name',$value,'$value_type', $owner_guid, $time, $access_id)");
}