function node_access_test_node_load

Implements hook_node_load().

File

modules/node/tests/node_access_test.module, line 191

Code

function node_access_test_node_load($nodes, $types) {
    $result = db_query('SELECT nid, private FROM {node_access_test} WHERE nid IN(:nids)', array(
        ':nids' => array_keys($nodes),
    ));
    foreach ($result as $record) {
        $nodes[$record->nid]->private = $record->private;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.