function BlockCacheAlter::_returnBlockCacheOptions in Block Cache Alter 6
Helper function to return all block cache options.
Return value
array $block_cache_options.
1 call to BlockCacheAlter::_returnBlockCacheOptions()
- BlockCacheAlter::testSimpleCacheChanges in ./
blockcache_alter.test - Test simple cache changes.
File
- ./
blockcache_alter.test, line 88 - Tests for Block Cache Alter
Class
- BlockCacheAlter
- @file Tests for Block Cache Alter
Code
function _returnBlockCacheOptions() {
$block_cache_options = array(
BLOCK_CACHE_GLOBAL => t('Cache once for everything (global)'),
BLOCK_CACHE_PER_PAGE => t('Per page'),
BLOCK_CACHE_PER_ROLE => t('Per role'),
BLOCK_CACHE_PER_ROLE | BLOCK_CACHE_PER_PAGE => t('Per role per page'),
BLOCK_CACHE_PER_USER => t('Per user'),
BLOCK_CACHE_PER_USER | BLOCK_CACHE_PER_PAGE => t('Per user per page'),
BLOCK_NO_CACHE => t('Do not cache'),
);
return $block_cache_options;
}