Commit d0a1c0f0 authored by Sean Brennan's avatar Sean Brennan Committed by Robert Lyon

Link from Content -> profile edit to Portfolio profile edit page (bug #620161)

An old patch that didn't get added to gerrit - not sure if it got
overlooked or is not needed anymore - so I'd thought I'd add
it and let others decide.

It adds a link on the Content -> Profile page to go directly to
Portfolio editing of your profile page.

Change-Id: I320ae1433b4ae8b79752c57b5e331d08e2a547cb
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 8689321f
......@@ -187,8 +187,10 @@ $profileform = pieform(array(
function get_desired_fields(&$allfields, $desiredfields, $section) {
global $USER;
if ($section == 'about') {
$r = get_record_select('view', 'type = ? AND owner = ?', array('profile', $USER->id), 'id');
$label = '<div id="profileicon"><a href="' . get_config('wwwroot') . 'artefact/file/profileicons.php"><img src="' . profile_icon_url($USER, 100, 100) . '" alt=""></a></div>';
$descr = get_string('aboutdescription', 'artefact.internal');
$descr = get_string('aboutprofilelinkdescription', 'artefact.internal', get_config('wwwroot') . 'view/blocks.php?id=' . $r->id);
$descr .= get_string('aboutdescription', 'artefact.internal');
}
else {
$label = '';
......
......@@ -23,6 +23,7 @@ $string['searchablefieldsdescription'] = 'Profile fields that can be searched on
$string['aboutdescription'] = 'Enter your real first and last name here. If you want to show a different name to people in the system, put that name in as your display name.';
$string['infoisprivate'] = 'This information is private until you include it in a page that is shared with others.';
$string['viewmyprofile'] = 'View my profile';
$string['aboutprofilelinkdescription'] = '<p>Please go to your <a href="%s">Profile</a> page to arrange the information you wish to display to other users.</p>';
// profile categories
$string['aboutme'] = 'About me';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment