function certificate_rules_award_certificate in Certificate 3.x
Same name and namespace in other branches
- 8.3 certificate.module \certificate_rules_award_certificate()
- 6.2 certificate.module \certificate_rules_award_certificate()
- 7.3 certificate.module \certificate_rules_award_certificate()
- 7.2 certificate.module \certificate_rules_award_certificate()
- 4.x certificate.module \certificate_rules_award_certificate()
Set the awarded certificate.
@todo in Drupal 7 and Rules 2, we can use return values. Rules 1 does not have return values.
File
- ./
certificate.module, line 578 - Certificate module.
Code
function certificate_rules_award_certificate($node, $user) {
global $_certificate_award;
$_certificate_award = TRUE;
}