Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
forms
usersettings
save.php
Go to the documentation of this file.
1
<?php
8
$user
=
elgg_get_page_owner_entity
();
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
$submit
Definition:
save.php:12
elgg_echo
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
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition:
output.php:208
$user
if(!$entity) $user
Definition:
save.php:54
echo
elgg echo
Translates a string.
Definition:
languages.js:48
elgg_view
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:336
elgg_get_page_owner_entity
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition:
pageowner.php:56
$hidden
$hidden
Definition:
save.php:13
$vars
$vars['type']
Definition:
save.php:11
$form_body
$form_body
Definition:
save.php:10
Generated on Fri Oct 11 2024 00:01:06 for Elgg by
1.8.11