Elgg  Version 4.3
edit_comment.php
Go to the documentation of this file.
1 <?php
6 $guid = get_input('guid');
7 
9 $entity = $comment->getContainerEntity();
10 elgg_set_page_owner_guid($entity->getContainerGUID());
11 
12 if (!($comment instanceof ElggComment) || !$comment->canEdit()) {
13  return false;
14 }
15 
17  'class' => 'hidden mvl',
18  'id' => "edit-comment-{$guid}",
19 ];
21  'comment' => $comment,
22 ];
23 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:34
if(!($comment instanceof ElggComment)||!$comment->canEdit()) $form_vars
$entity
Definition: edit_comment.php:9
elgg_view_form($action, $form_vars=[], $body_vars=[])
Definition: views.php:1064
$comment
Definition: edit_comment.php:8
get_input($variable, $default=null, $filter_result=true)
Parameter input functions.
Definition: input.php:20
$guid
Elgg ajax edit comment form.
Definition: edit_comment.php:6
elgg echo
Translates a string.
Definition: deprecated.js:530
if(!($comment instanceof ElggComment)||!$comment->canEdit()) $body_vars
get_entity($guid)
Loads and returns an entity object from a guid.
Definition: entities.php:69