function context_node_condition

cis7 context.core.inc context_node_condition(&$node, $op)
cle7 context.core.inc context_node_condition(&$node, $op)
elmsmedia7 context.core.inc context_node_condition(&$node, $op)
icor7 context.core.inc context_node_condition(&$node, $op)
meedjum_blog7 context.core.inc context_node_condition(&$node, $op)
mooc7 context.core.inc context_node_condition(&$node, $op)

Centralized node condition call function for the ever increasing number of ways to get at a node view / node form.

5 calls to context_node_condition()
context_ctools_render_alter in sites/all/modules/ulmus/context/context.core.inc
Implementation of hook_ctools_render_alter(). Used to detect the presence of a page manager node view or node form.
context_form_alter_node_after_build in sites/all/modules/ulmus/context/context.core.inc
Form #after_build callback for context_form_alter().
context_form_comment_form_alter in sites/all/modules/ulmus/context/context.core.inc
Implementation of hook_form_alter() for comment_form.
context_node_view in sites/all/modules/ulmus/context/context.core.inc
Implementation of hook_node_view().
context_views_pre_view in sites/all/modules/ulmus/context/context.core.inc
Implementation of hook_views_pre_view().

File

sites/all/modules/ulmus/context/context.core.inc, line 167

Code

function context_node_condition(&$node, $op) {
  if ($plugin = context_get_plugin('condition', 'node')) {
    $plugin->execute($node, $op);
  }
  if (module_exists('taxonomy')) {
    if ($plugin = context_get_plugin('condition', 'node_taxonomy')) {
      $plugin->execute($node, $op);
    }
  }
  if (module_exists('book')) {
    if ($plugin = context_get_plugin('condition', 'book')) {
      $plugin->execute($node, $op);
    }
    if ($plugin = context_get_plugin('condition', 'bookroot')) {
      $plugin->execute($node, $op);
    }
  }
  // Allow other plugins to easily be triggered on node-related events.
  drupal_alter('context_node_condition', $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.