function context_load

cis7 context.module context_load($name = NULL, $reset = FALSE)
cle7 context.module context_load($name = NULL, $reset = FALSE)
elmsmedia7 context.module context_load($name = NULL, $reset = FALSE)
icor7 context.module context_load($name = NULL, $reset = FALSE)
meedjum_blog7 context.module context_load($name = NULL, $reset = FALSE)
mooc7 context.module context_load($name = NULL, $reset = FALSE)

Context loader.


$name: The name for this context object.

Return value

Returns a fully-loaded context definition.

7 calls to context_load()
context_condition::get_contexts in sites/all/modules/ulmus/context/plugins/
Retrieve all contexts with the condition value provided.
context_condition_context::get_contexts in sites/all/modules/ulmus/context/plugins/
Retrieve all context conditions.
context_context_list in sites/all/modules/ulmus/context/context.module
CTools list callback for bulk export.
context_enabled_contexts in sites/all/modules/ulmus/context/context.module
Wrapper around context_load() that only returns enabled contexts.
context_features_export in sites/all/modules/ulmus/features/includes/
Implements hook_features_export().

... See full list


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


function context_load($name = NULL, $reset = FALSE) {
  static ctools_include('export');
  static $contexts;
  static $altered;
  if (!isset($contexts) || $reset) {
    $contexts = $altered = array();
    if (!$reset && $contexts = context_cache_get('context')) {
      // Nothing here.
    else {
      if ($reset) {
      $contexts = ctools_export_load_object('context', 'all');
      context_cache_set('context', $contexts);
  if (isset($name)) {
    // Allow other modules to alter the value just before it's returned.
    if (isset($contexts[$name]) && !isset($altered[$name])) {
      $altered[$name] = TRUE;
      drupal_alter('context_load', $contexts[$name]);
    return isset($contexts[$name]) ? $contexts[$name] : FALSE;
  return $contexts;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.