function _context_node_check_for_context in Context Node 7
Same name and namespace in other branches
- 6 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_node_update in ./
context_node.module - Implements hook_node_update()
File
- ./
context_node.module, line 299
Code
function _context_node_check_for_context($node) {
$result = db_query("SELECT nid FROM {context_node} WHERE nid = :nid", array(
':nid' => $node->nid,
))
->fetchObject();
if ($result) {
return TRUE;
}
else {
return FALSE;
}
}