You are here

function weight_node_load in Weight 7

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

Implements hook_node_load().

File

./weight.module, line 108
This module uses the sticky column of the node table to add weighting to nodes.

Code

function weight_node_load($nodes, $types) {
  $weight_node_types = variable_get('weight_node_types', array_flip(node_type_get_names()));
  foreach ($nodes as $node) {
    if (in_array($node->type, $weight_node_types)) {
      _weight_decode($node);
    }
  }
}