Elgg  Version 1.11
save.php
Go to the documentation of this file.
1 <?php
9 
10 $form_body = elgg_view('forms/account/settings', $vars);
11 
12 $submit = elgg_view('input/submit', ['value' => elgg_echo('save')]);
13 $hidden = '';
14 
15 if ($user) {
16  // we need to include the user GUID so that admins can edit the settings of other users
17  $hidden = elgg_view('input/hidden', ['name' => 'guid', 'value' => $user->guid]);
18 }
19 
20 $form_body .= elgg_format_element('div', ['class' => 'elgg-foot'], $submit . $hidden);
21 
$submit
Definition: save.php:12
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition: output.php:215
if(!$entity) $user
Definition: save.php:55
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:53
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
$hidden
Definition: save.php:13
$vars['type']
Definition: save.php:11
$form_body
Definition: save.php:10