function context_active_contexts

cis7 context.module context_active_contexts()
cle7 context.module context_active_contexts()
elmsmedia7 context.module context_active_contexts()
icor7 context.module context_active_contexts()
meedjum_blog7 context.module context_active_contexts()
mooc7 context.module context_active_contexts()

Loads any active contexts with associated reactions. This should be run at a late stage of the page load to ensure that relevant contexts have been set.

10 calls to context_active_contexts()
context_condition_context::execute in sites/all/modules/ulmus/context/plugins/context_condition_context.inc
Execute.
context_condition_context_all::execute in sites/all/modules/ulmus/context/plugins/context_condition_context_all.inc
Execute.
context_links in sites/all/modules/ulmus/context/context.core.inc
Generates an array of links (suitable for use with theme_links) to the node forms of types associated with current active contexts.
context_preprocess_menu_link in sites/all/modules/ulmus/context/context.module
Implementation of hook_preprocess_menu_link().
context_reaction::get_contexts in sites/all/modules/ulmus/context/plugins/context_reaction.inc
Retrieve active contexts that have values for this reaction.

... See full list

File

sites/all/modules/ulmus/context/context.module, line 402

Code

function context_active_contexts() {
  $contexts = context_get('context');
  return !empty($contexts) && is_array($contexts) ? $contexts : array();
}
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.