You are here

function _nodeisblock_load in Nodes In Block 6

Same name and namespace in other branches
  1. 7 nodesinblock.module \_nodeisblock_load()

Helper function to load node data for nodesinblock.

2 calls to _nodeisblock_load()
nodesinblock_nodeapi in ./nodesinblock.module
Implementation of hook_nodeapi().
nodesinblock_nodequeue_access in ./nodesinblock.module
Access callback: check that user has access to configure nodes in block queue.

File

./nodesinblock.module, line 334
Nodes in block makes it possible to add multiple nodes in one block.

Code

function _nodeisblock_load(&$node) {
  $delta = db_fetch_object(db_query("SELECT delta, nid FROM {nodesinblock} WHERE nid = %d", $node->nid));
  if (isset($delta->nid)) {
    $node->nodesinblock = $delta->delta;
  }
}