function _nodeisblock_load in Nodes In Block 7
Same name and namespace in other branches
- 6 nodesinblock.module \_nodeisblock_load()
Helper function to load node data for nodesinblock.
2 calls to _nodeisblock_load()
- nodesinblock_nodequeue_access in ./
nodesinblock.module - Access callback: check that user has access to configure nodes in block queue.
- nodesinblock_node_delete in ./
nodesinblock.module - Implements hook_node_delete().
File
- ./
nodesinblock.module, line 340 - Nodes in block makes it possible to add multiple nodes in one block.
Code
function _nodeisblock_load($node) {
$delta = db_query("SELECT delta, nid FROM {nodesinblock} WHERE nid = :nid", array(
':nid' => $node->nid,
))
->fetchObject();
if (isset($delta->nid)) {
$node->nodesinblock = $delta->delta;
}
}