You are here

function context_conditions in Context 6.2

Same name and namespace in other branches
  1. 6.3 context.module \context_conditions()
  2. 6 context.module \context_conditions()
  3. 7.3 context.module \context_conditions()

Invokes hook_context_conditions() to provide an array of conditions that may be associated with a context.

6 calls to context_conditions()
context_active_values in ./context.module
Builds an array of values based on the current active contexts and group by conditions/reactions.
context_condition_map in ./context.module
Loads an associative array of conditions => context identifiers to allow contexts to be set by different conditions. Called by context_set_by_condition().
context_ui_form in context_ui/context_ui.admin.inc
Generates the omnibus context definition editing form. Note: submission and validation handlers are in context_ui.admin.inc
context_ui_form_process in context_ui/context_ui.admin.inc
Produces a context object from submitted form values.
context_ui_preprocess_context_ui_list_contexts in context_ui/context_ui.admin.inc
Preprocess the contexts list theme

... See full list

File

./context.module, line 562

Code

function context_conditions($reset = FALSE) {
  static $conditions;
  if (!isset($conditions) || $reset) {
    $cache = context_cache_get('conditions');
    if ($cache && !$reset) {
      $conditions = $cache;
    }
    else {
      $conditions = module_invoke_all('context_conditions');
      context_cache_set('conditions', $conditions);
    }
  }
  return $conditions;
}