* Closes #964: Introduces a plugin hook 'annotations:view', $entity_class (object/user/group/site) called elgg_view_entity on FULL view. This lets you return annotations to an entity and control the order in which they're displayed. Existing views remain un-effected but should probably be retrofitted.
* Version bump.
git-svn-id: https://code.elgg.org/elgg/trunk@3337
36083f99-b078-4883-b0ff-
0f9b5a30f544
'entity' => $entity,
'full' => $full
), $bypass, $debug);
+ }
+ if ($full) // Marcus Povey 20090616 : Speculative and low impact approach for fixing #964
+ {
+ $annotations = trigger_plugin_hook('annotations:view', $entity_class, array(
+ 'entity' => $entity,
+ 'full' => $full,
+
+ // We already know this, so pass it on.
+ 'type' => $entity_type,
+ 'subtype' => $subtype
+ )
+ );
+
+ if ($annotations)
+ $contents .= $annotations;
}\r
return $contents;
}
* @link http://elgg.org/\r
*/\r
- $version = 2009061401; // YYYYMMDD = Elgg Date
+ $version = 2009061601; // YYYYMMDD = Elgg Date
// XX = Interim incrementer\r
\r
$release = '1.5'; // Human-friendly version name\r