You are here

function weight_node_load in Weight 7.2

Same name and namespace in other branches
  1. 7 weight.module \weight_node_load()

Implements hook_node_load().

File

./weight.module, line 434

Code

function weight_node_load($nodes, $type) {
  $types = _weight_get_types();
  foreach ($nodes as $node) {
    if (in_array($node->type, $types)) {
      $node->weight_weight = _weight_get_weight($node);
    }
  }
}