function spaces_customtext_cache in Spaces 6.3
Same name and namespace in other branches
- 7.3 spaces_customtext/spaces_customtext.module \spaces_customtext_cache()
- 7 spaces_customtext/spaces_customtext.module \spaces_customtext_cache()
Simple static cache for storing the actual language code for the current page request.
3 calls to spaces_customtext_cache()
- spaces_controller_customtext::init_overrides in spaces_customtext/
plugins/ spaces_controller_customtext.inc - Override of init_overrides().
- spaces_customtext_init in spaces_customtext/
spaces_customtext.module - Implementation of hook_init().
- spaces_init in ./
spaces.module - Implementation of hook_init().
File
- spaces_customtext/
spaces_customtext.module, line 80 - Spaces Custom Text.
Code
function spaces_customtext_cache($langcode = NULL, $reset = FALSE) {
static $cache;
if ($reset) {
unset($cache);
}
$cache = isset($langcode) ? $langcode : $cache;
return isset($cache) ? $cache : NULL;
}