1 | <?php |
||
2 | /** |
||
3 | * User account settings. |
||
4 | * |
||
5 | * Plugins should extend this form to add to the settings. |
||
6 | */ |
||
7 | |||
8 | $user = elgg_get_page_owner_entity(); |
||
9 | if (!$user instanceof ElggUser) { |
||
10 | return; |
||
11 | } |
||
12 | |||
13 | if ($user) { |
||
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
14 | // we need to include the user GUID so that admins can edit the settings of other users |
||
15 | echo elgg_view_field([ |
||
16 | '#type' => 'hidden', |
||
17 | 'name' => 'guid', |
||
18 | 'value' => $user->guid, |
||
19 | ]); |
||
20 | } |
||
21 | |||
22 | $footer = elgg_view_field([ |
||
23 | '#type' => 'submit', |
||
24 | 'value' => elgg_echo('save'), |
||
25 | ]); |
||
26 | |||
27 | elgg_set_form_footer($footer); |
||
28 |