You are here

function node_authlink_node_load in Node authorize link 8

Same name and namespace in other branches
  1. 7 node_authlink.module \node_authlink_node_load()

Implements hook_node_load().

Appends authke to loaded node object.

File

./node_authlink.module, line 188
Node Authlink hooks and alters.

Code

function node_authlink_node_load($nodes) {
  foreach ($nodes as $nid => $node) {

    // TODO: check node type (performance)
    if ($authkey = node_authlink_load_authkey($nid)) {
      $nodes[$nid]->authkey = $authkey;
    }
  }
}