Elgg  Version 6.2
Variables
save.php File Reference

Go to the source code of this file.

Variables

 $widget = elgg_extract('entity', $vars)
 Elgg widget edit settings. More...
 
if(! $widget instanceof \ElggWidget$custom_form_section = ''
 
if(elgg_view_exists("widgets/{$widget->handler}/edit")) $access = ''
 
if(elgg_extract('show_access', $vars, true)) if (! $custom_form_section &&! $access)
 
if(elgg_in_context('default_widgets')) $footer
 

Variable Documentation

◆ $access

if (elgg_view_exists("widgets/{$widget->handler}/edit")) $access = ''

Definition at line 19 of file save.php.

◆ $custom_form_section

if (! $widget instanceof \ElggWidget) $custom_form_section = ''

Definition at line 14 of file save.php.

◆ $footer

if (elgg_in_context( 'default_widgets')) $footer
Initial value:
'#type' => 'submit',
'text' => elgg_echo('save'),
])
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112

Definition at line 51 of file save.php.

◆ $widget

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

Elgg widget edit settings.

@uses $vars['entity'] The widget entity @uses $vars['show_access'] (bool) should widget access setting be available default: true

Definition at line 9 of file save.php.

◆ if

if (elgg_extract( 'show_access', $vars, true)) if(! $custom_form_section &&! $access) ( ! $custom_form_section &&!  $access)

Definition at line 30 of file save.php.