Hello all,
I want a extra element for the custom certficate.
It's the groupname of the student.
I need the correct query for this.
Can some one help me?
Kind regards,
Koen
/****************/
public function render($pdf, $preview, $user) {
global $COURSE;
global $USER;
global $DB;
$courseid = $COURSE -> id;
$userid = $USER -> id;
$groupname = $DB->get_record("XXXXXXXXXXXXXXXXXXX");
\mod_customcert\element_helper::render_content($pdf, $this,$groupname);
}
/****************/