From 5439a340e623ccf17ce2a6b59cf31862beb2ba68 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 25 Jun 2008 12:28:30 +0000 Subject: Adding an annotation triggers an 'annotate' event git-svn-id: https://code.elgg.org/elgg/trunk@1122 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/annotations.php | 3 +++ 1 file changed, 3 insertions(+) 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)"); } -- cgit v1.2.3