Elgg  Version 6.3
Variables
save.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 
if($entity instanceof \ElggEntity$comment = elgg_extract('comment', $vars)
 
 $is_edit = $comment instanceof \ElggComment && $comment->canEdit()
 
if($is_edit) if (elgg_extract( 'inline', $vars, false))
 
 $footer_fields
 

Variable Documentation

◆ $comment

if ( $entity instanceof \ElggEntity) $comment = elgg_extract('comment', $vars)

Definition at line 26 of file save.php.

◆ $entity

$entity = elgg_extract('entity', $vars)

Definition at line 17 of file save.php.

◆ $footer_fields

$footer_fields
Initial value:
= [[
'#type' => 'submit',
'text' => $is_edit ? elgg_echo('save') : elgg_echo('comment'),
]]
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
$is_edit
Definition: save.php:28

Definition at line 66 of file save.php.

◆ $is_edit

$is_edit = $comment instanceof \ElggComment && $comment->canEdit()

Definition at line 28 of file save.php.

◆ if

if ( $is_edit) if(elgg_extract('inline', $vars, false)) ( elgg_extract( 'inline', $vars, false)  )

Definition at line 36 of file save.php.