aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/annotation/group_topic_post.php
blob: f38d2a77a47e9c2966ee129b65e785e7b90056cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/*
 * Embeds an edit link for the annotation
 */

$annotation = elgg_extract('annotation', $vars);

echo elgg_view('annotation/default', $vars);

if ($annotation->canEdit()) {
	$form = elgg_view_form('discussion/reply/save', array(), array_merge(array(
			'entity' => get_entity($annotation->entity_guid),
			'annotation' => $annotation
		), $vars)
	);

	echo "<div class=\"hidden mbm\" id=\"edit-annotation-$annotation->id\">$form</div>";
}