name.php 578 B

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