You are here

function certificate_node_load in Certificate 8.3

Same name and namespace in other branches
  1. 7.3 certificate.module \certificate_node_load()
  2. 7.2 certificate.module \certificate_node_load()
  3. 3.x certificate.module \certificate_node_load()

Implements hook_node_load().

File

./certificate.module, line 387
Certificate module.

Code

function certificate_node_load($nodes, $types) {
  foreach ($nodes as $nid => $node) {
    if (certificate_node_is_certifiable($node)) {
      $nodes[$nid]->certificate = array(
        'node_settings' => certificate_course_node_template_settings($node->nid),
      );
    }
  }
}