save.php 590 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * User account settings.
  4. *
  5. * Plugins should extend "forms/account/settings" to add to the settings.
  6. */
  7. $user = elgg_get_page_owner_entity();
  8. $form_body = elgg_view('forms/account/settings', $vars);
  9. $submit = elgg_view('input/submit', ['value' => elgg_echo('save')]);
  10. $hidden = '';
  11. if ($user) {
  12. // we need to include the user GUID so that admins can edit the settings of other users
  13. $hidden = elgg_view('input/hidden', ['name' => 'guid', 'value' => $user->guid]);
  14. }
  15. $form_body .= elgg_format_element('div', ['class' => 'elgg-foot'], $submit . $hidden);
  16. echo $form_body;