You are here

function certificate_rules_award_certificate in Certificate 3.x

Same name and namespace in other branches
  1. 8.3 certificate.module \certificate_rules_award_certificate()
  2. 6.2 certificate.module \certificate_rules_award_certificate()
  3. 7.3 certificate.module \certificate_rules_award_certificate()
  4. 7.2 certificate.module \certificate_rules_award_certificate()
  5. 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;
}