You are here

function _weight2encoded_sticky in Weight 5

1 call to _weight2encoded_sticky()
weight_nodeapi in ./weight.module

File

./weight.module, line 414

Code

function _weight2encoded_sticky(&$node) {
  if ($node->sticky) {
    $node->sticky = 100 - $node->node_weight;
  }
  else {
    $node->sticky = -($node->node_weight + 100);
  }
}