MDL-14086 Hide navigation tabs when being forced to complete profile

This commit is contained in:
moodler
2008-03-28 06:32:13 +00:00
parent 515ae2a180
commit 7942f4377a
2 changed files with 8 additions and 3 deletions
+1
View File
@@ -954,6 +954,7 @@ $string['moodledocslink'] = 'Moodle Docs for this page';
$string['moodleversion'] = 'Moodle Version';
$string['more'] = 'more';
$string['moreinformation'] = 'More information about this error';
$string['moreprofileinfoneeded'] = 'Please tell us more about yourself';
$string['mostrecently'] = 'most recently';
$string['move'] = 'Move';
$string['movecategoryto'] = 'Move category to:';
+7 -3
View File
@@ -246,8 +246,12 @@
$tabs = array($toprow);
}
/// Print out the tabs and continue!
print_tabs($tabs, $currenttab, $inactive, $activetwo);
if ($currenttab == 'editprofile' && ($user->id == $USER->id) && user_not_fully_set_up($USER)) {
/// We're being forced here to fix profile
notify(get_string('moreprofileinfoneeded'));
} else {
/// Print out the tabs and continue!
print_tabs($tabs, $currenttab, $inactive, $activetwo);
}
?>