canEdit()) { register_error(elgg_echo("profile:noaccess")); forward(); } elgg_push_context('settings'); elgg_push_context('profile_edit'); $title = elgg_echo('profile:edit'); $content = elgg_view_form('profile/edit', array(), array('entity' => $user)); $params = array( 'content' => $content, 'title' => $title, ); $body = elgg_view_layout('one_sidebar', $params); echo elgg_view_page($title, $body);