Elgg  Version 1.9
name.php
Go to the documentation of this file.
1 <?php
10 if ($user) {
11  $title = elgg_echo('user:name:label');
12  $content = elgg_echo('name') . ': ';
13  $content .= elgg_view('input/text', array(
14  'name' => 'name',
15  'value' => $user->name,
16  ));
18 
19  // need the user's guid to make sure the correct user gets updated
20  echo elgg_view('input/hidden', array('name' => 'guid', 'value' => $user->guid));
21 }
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition: views.php:1197
$title
Definition: save.php:24
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
$user
Definition: name.php:9
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:53
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
$content
Set robots.txt action.
Definition: set_robots.php:6