Changing certificate

Re: Changing certificate

by Michael "doc" Crawford -
Number of replies: 0

Hello Jean-Michel, I did read that thread. Your code:

$usesections = course_format_uses_sections($course->format);
    if ($usesections) {
        $currentsection = $DB->get_record('course_sections', array('id'=>$cm->section));

        if ($currentsection) {
            $printsection = get_section_name($course, $currentsection);
            certificate_print_text($pdf, $x, $y+72, 'C', 'Helvetica', '', 20, $printsection);

        }
    }

...was posted in 2012. I was concerned that it may not work in this latest Moodle/Certificate version.

Where should I put this code on the certificate.php page of My Certificate?