public function CourseObjectCertificate::take in Course 7
Same name and namespace in other branches
- 6 modules/course_certificate/course_certificate.classes.inc \CourseObjectCertificate::take()
- 7.2 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(t('Download certificate'), "node/" . $this
->getCourseNid() . "/certificate");
}