Elgg
Version 1.11
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_format_element
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition:
output.php:215
$user
if(!$entity) $user
Definition:
save.php:55
elgg_echo
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition:
languages.php:21
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_get_page_owner_entity
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition:
pageowner.php:53
elgg_view
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:354
$hidden
$hidden
Definition:
save.php:13
$vars
$vars['type']
Definition:
save.php:11
$form_body
$form_body
Definition:
save.php:10
Generated on Mon Dec 30 2024 00:00:47 for Elgg by
1.8.11