From: moodler Date: Wed, 19 Nov 2003 15:59:45 +0000 (+0000) Subject: This function is just a stub to stand in for a while until I have more X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e2cd50652b91a3afb54f2ce01615e6c1314526a1;p=moodle.git This function is just a stub to stand in for a while until I have more time ... Following this I'll be converting all the other files around the place to use this function. --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 74c66358fe..bd2a62a83e 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -496,6 +496,22 @@ function ismoving($courseid) { return false; } +function fullname($user, $override=false) { +/// Given a user object, this function returns a +/// string with the full name of the person. +/// The result may depend on system settings +/// or language. Override will force both names +/// to be used even if system settings specify one. + global $CFG; + + /// XXX + /// XXX this function is not finished yet! + /// XXX + + return "$user->firstname $user->lastname"; + +} + function set_moodle_cookie($thing) { /// Sets a moodle cookie with an encrypted string