blob: af1b9a1a7b58f4188ccbfd9896c240429ad1df0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
/**
* Provide a way of setting your full name.
*
* @package Elgg
* @subpackage Core
*/
$user = elgg_get_page_owner_entity();
if ($user) {
$title = elgg_echo('user:name:label');
$content = elgg_echo('name') . ' :<br />';
$content .= elgg_view('input/text', array(
'name' => 'name',
'value' => $user->name,
));
echo elgg_view_module('info', $title, $content);
// need the user's guid to make sure the correct user gets updated
echo elgg_view('input/hidden', array('name' => 'guid', 'value' => $user->guid));
}
|