function alpha_cache_get

cis7 alpha.inc alpha_cache_get($theme, $delta = NULL)
cle7 alpha.inc alpha_cache_get($theme, $delta = NULL)
elmsmedia7 alpha.inc alpha_cache_get($theme, $delta = NULL)
icor7 alpha.inc alpha_cache_get($theme, $delta = NULL)
meedjum_blog7 alpha.inc alpha_cache_get($theme, $delta = NULL)
mooc7 alpha.inc alpha_cache_get($theme, $delta = NULL)

Retrieves the cached parts of a theme container.

Parameters

$theme: The key (machin-readable name) of a theme.

$delta (optional): The machine-readable name of a delta template.

Return value

A cache object or nothing if no cache entry exists.

1 call to alpha_cache_get()
alpha_theme_container::__construct in sites/all/themes/ulmus/omega/alpha/includes/base.inc
@todo

File

sites/all/themes/ulmus/omega/alpha/includes/alpha.inc, line 696
Helper functions for the Alpha base theme.

Code

function alpha_cache_get($theme, $delta = NULL) {
  if (isset($delta)) {
    return cache_get('alpha:' . $theme . ':' . $delta);
  }
  else {
    return cache_get('alpha:' . $theme);
  }
}