moodle variables
Submitted by szay87 on Mon, 10/23/2017 - 22:26
Forums:
I have been tasked by my team for creating an internal training site.. Currently we are using SCORM packages that can pull session variables such as First name, last name, and email and build URLs with those variables.. I am now trying to convert those scorm packages to h5p since it is a while lot nicer to deal with.. however I was wondering if there is any way to nicely pull those above variables within my new h5p library to have the same functionality?
icc
Tue, 10/24/2017 - 10:00
Permalink
Do you mean in code or in
Do you mean in code or in text fields?
In code, it's possible to get name and mail from the H5PIntegration.user object. Not sure if this is what you're looking for?
szay87
Tue, 10/24/2017 - 23:27
Permalink
In code
I would preferably like to do it in code.. is there some documentation on the H5PIntegration.user object?
icc
Wed, 10/25/2017 - 13:37
Permalink
Sadly, no, but I believe it's
Sadly, no, but I believe it's always set if the user is logged in.