function hook_context_node_condition_alter

cis7 context.api.php hook_context_node_condition_alter(&$node, $op)
cle7 context.api.php hook_context_node_condition_alter(&$node, $op)
elmsmedia7 context.api.php hook_context_node_condition_alter(&$node, $op)
icor7 context.api.php hook_context_node_condition_alter(&$node, $op)
meedjum_blog7 context.api.php hook_context_node_condition_alter(&$node, $op)
mooc7 context.api.php hook_context_node_condition_alter(&$node, $op)

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'.

1 function implements hook_context_node_condition_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

date_context_context_node_condition_alter in sites/all/modules/ulmus/date/date_context/date_context.module
Implements hook_context_node_condition_alter().
1 invocation of hook_context_node_condition_alter()
context_node_condition in sites/all/modules/ulmus/context/context.core.inc
Centralized node condition call function for the ever increasing number of ways to get at a node view / node form.

File

sites/all/modules/ulmus/context/context.api.php, line 106
Hooks provided by Context.

Code

function hook_context_node_condition_alter(&$node, $op) {
  if ($plugin = context_get_plugin('condition', 'bar')) {
    $plugin->execute($node, $op);
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.