bozoh / moodle-mod_simplecertificate

It's NOT RECOMMENDED to install version below 2.2.6 (MOODLE_31), due a security issues See more in README
17 stars 44 forks source link

Add new course custom field in certificate #241

Closed bhodeler closed 3 years ago

bhodeler commented 3 years ago

Hello,

I´ve added a new course custom field, "coursehours", which store course hour number.

My issue is I don´t know how collect that info to include in my certificate.

Can you help me, please?

bozoh commented 3 years ago

and your course have variable course hours ? if not only add a text in the certificate, otherwise you will need to change the code, in this function: https://github.com/bozoh/moodle-mod_simplecertificate/blob/master/locallib.php#L1344