public function CourseObjectCertificate::take in Course 6
Same name and namespace in other branches
- 7.2 modules/course_certificate/course_certificate.classes.inc \CourseObjectCertificate::take()
- 7 modules/course_certificate/course_certificate.classes.inc \CourseObjectCertificate::take()
Overrides CourseObject::take
File
- modules/
course_certificate/ course_certificate.classes.inc, line 5
Class
Code
public function take() {
// Fulfill immediately.
$this
->getFulfillment()
->setComplete(1)
->save();
return l('Download certificate', "node/" . $this
->getCourseNid() . "/certificate");
}