function context_ui_contrib_nodeapi in Context 5
Implementation of hook_nodeapi().
File
- context_ui/
context_ui_contrib.module, line 58
Code
function context_ui_contrib_nodeapi(&$node, $op, $teaser, $page) {
if ($op == 'view' && $page && arg(0) == 'node') {
// Implementation of context_ui_set for nodequeue.
if (module_exists('nodequeue')) {
$result = db_query("SELECT qid FROM {nodequeue_nodes} WHERE nid = %d", $node->nid);
while ($qid = db_fetch_object($result)) {
context_ui_set('nodequeue', $qid->qid);
}
}
// Implementation of context_ui_set for outline
if (module_exists('outline') && ($vol = $node->volume_id)) {
context_ui_set('outline', $vol);
}
}
}