function _context_node_check_for_context in Context Node 6
Same name and namespace in other branches
- 7 context_node.module \_context_node_check_for_context()
Check if a node has a context in the {context_node} table
Parameters
$node The node to check:
1 call to _context_node_check_for_context()
- context_node_nodeapi in ./
context_node.module - Implements hook_nodeapi()
File
- ./
context_node.module, line 206
Code
function _context_node_check_for_context($node) {
$result = db_result(db_query("SELECT nid FROM {context_node} WHERE nid = %d", $node->nid));
if ($result) {
return TRUE;
}
else {
return FALSE;
}
}