You are here

function date_context_context_node_condition_alter in Date 7.3

Same name and namespace in other branches
  1. 8 date_context/date_context.module \date_context_context_node_condition_alter()
  2. 7.2 date_context/date_context.module \date_context_context_node_condition_alter()

Implements hook_context_node_condition_alter().

File

date_context/date_context.module, line 18
Add an option to set/not set the context on forms vs views.

Code

function date_context_context_node_condition_alter($node, $op) {
  if ($plugin = context_get_plugin('condition', 'date_context_date_condition')) {
    $plugin
      ->execute($node, $op);
  }
}