Elgg  Version 3.0
edit_comment.php
Go to the documentation of this file.
1 <?php
9 $guid = get_input('guid');
10 
12 $entity = $comment->getContainerEntity();
13 elgg_set_page_owner_guid($entity->getContainerGUID());
14 
15 if (!($comment instanceof ElggComment) || !$comment->canEdit()) {
16  return false;
17 }
18 
20  'class' => 'hidden mvl',
21  'id' => "edit-comment-{$guid}",
22 ];
24  'comment' => $comment,
25 ];
26 echo elgg_view_form('comment/save', $form_vars, $body_vars);
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
Definition: pageowner.php:81
if(!($comment instanceof ElggComment)||!$comment->canEdit()) $form_vars
$entity
elgg_view_form($action, $form_vars=[], $body_vars=[])
Definition: views.php:1318
$comment
get_input($variable, $default=null, $filter_result=true)
Get some input from variables passed submitted through GET or POST.
Definition: input.php:27
elgg echo
Translates a string.
Definition: languages.js:43
$guid
Definition: edit_comment.php:9
if(!($comment instanceof ElggComment)||!$comment->canEdit()) $body_vars
get_entity($guid)
Loads and returns an entity object from a guid.
Definition: entities.php:87