function spaces_customtext_cache in Spaces 7
Same name and namespace in other branches
- 6.3 spaces_customtext/spaces_customtext.module \spaces_customtext_cache()
- 7.3 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 - Implements hook_init().
- spaces_init in ./
spaces.module - Implements hook_init().
File
- spaces_customtext/
spaces_customtext.module, line 84 - 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;
}