]> git.mjollnir.org Git - moodle.git/commitdiff
This function is just a stub to stand in for a while until I have more
authormoodler <moodler>
Wed, 19 Nov 2003 15:59:45 +0000 (15:59 +0000)
committermoodler <moodler>
Wed, 19 Nov 2003 15:59:45 +0000 (15:59 +0000)
time ... Following this I'll be converting all the other files around
the place to use this function.

lib/moodlelib.php

index 74c66358fe0110d7f91be5f0da95c39697a7356e..bd2a62a83e3f1598a730fbd2acf2ea837634a67b 100644 (file)
@@ -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