function context_cache_set in Context 6
Same name and namespace in other branches
- 6.3 context.module \context_cache_set()
- 6.2 context.module \context_cache_set()
- 7.3 context.module \context_cache_set()
Wrapper around cache_set() to make it easier for context to write different datastores to a single cache row.
5 calls to context_cache_set()
- context_conditions in ./
context.module - Invokes hook_context_conditions() to provide an array of conditions that may be associated with a context.
- 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_enabled_contexts in ./
context.module - Retrieves all enabled contexts from the cache.
- context_reactions in ./
context.module - Invokes hook_context_reactions() to provide an array of reactions that may be associated with a context.
- context_reaction_block::get_blocks in plugins/
context_reaction_block.inc - Helper function to generate a list of blocks from a specified region. If provided a context object, will generate a full list of blocks for that region distinguishing between system blocks and context-provided blocks.
File
- ./
context.module, line 387
Code
function context_cache_set($key, $value) {
$cache = cache_get('context', 'cache');
$cache = $cache ? $cache->data : array();
$cache[$key] = $value;
cache_set('context', $cache);
}