function panels_node_load in Panels 6.3
Same name and namespace in other branches
- 5.2 panels_node/panels_node.module \panels_node_load()
- 6.2 panels_node/panels_node.module \panels_node_load()
Implementation of hook_load().
Panels does not use revisions for nodes because that would open us up to have completely separate displays, and we'd have to copy them, and that's going to be a LOT of data.
File
- panels_node/
panels_node.module, line 242 - panels_node.module
Code
function panels_node_load($node) {
// We shortcut this because only in some really drastic corruption circumstance will this
// not work.
$additions['panels_node'] = db_fetch_array(db_query("SELECT * FROM {panels_node} WHERE nid = %d", $node->nid));
return $additions;
}