aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 87f2ec278..7822919c5 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -790,7 +790,16 @@
*/
function elgg_view_entity_annotations(ElggEntity $entity, $full = true)
{
- $annotations = trigger_plugin_hook('entity:annotate', $entity_class,
+ $classes = array(
+ 'ElggUser' => 'user',
+ 'ElggObject' => 'object',
+ 'ElggSite' => 'site',
+ 'ElggGroup' => 'group'
+ );
+
+ $entity_class = get_class($entity);
+
+ $annotations = trigger_plugin_hook('entity:annotate', $classes[$entity_class],
array(
'entity' => $entity,
'full' => $full,