Elgg  Version 5.1
Variables
save.php File Reference

Go to the source code of this file.

Variables

 $widget = elgg_extract('widget', $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

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

Definition at line 25 of file save.php.

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

Definition at line 20 of file save.php.

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

Definition at line 57 of file save.php.

if ($widget!==null) $widget = elgg_extract('widget', $vars)

Elgg widget edit settings.

$vars['entity'] The widget entity $vars['widget'] Deprecated; use 'entity' instead $vars['show_access'] (bool) should widget access setting be available default: true

Definition at line 10 of file save.php.

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

Definition at line 36 of file save.php.