Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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 
22 echo $form_body;
$submit
Definition: save.php:12
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition: output.php:218
if(!$entity) $user
Definition: save.php:54
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:56
$hidden
Definition: save.php:13
$vars['type']
Definition: save.php:11
$form_body
Definition: save.php:10