function hook_context_node_condition_alter in Context 6
Same name and namespace in other branches
- 6.3 context.api.php \hook_context_node_condition_alter()
- 7.3 context.api.php \hook_context_node_condition_alter()
Alter/add a condition to a node-related event.
Allows modules to add one or more context condition plugin executions to a node view, form, etc.
Parameters
$node: The node object.
$op: The node-related operation: 'node', 'form', 'comment'.
File
- ./
context.api.php, line 82 - Hooks provided by Context.
Code
function hook_context_node_condition_alter(&$node, $op) {
if ($plugin = context_get_plugin('condition', 'bar')) {
$plugin
->execute($node, $op);
}
}