function views_plugin_display_block::block_caching_modes

Same name in other branches
  1. 7.x-3.x plugins/views_plugin_display_block.inc \views_plugin_display_block::block_caching_modes()

Provide a list of core's block caching modes.

2 calls to views_plugin_display_block::block_caching_modes()
views_plugin_display_block::options_form in plugins/views_plugin_display_block.inc
Provide the default form for setting options.
views_plugin_display_block::options_summary in plugins/views_plugin_display_block.inc
Provide the summary for page options in the views UI.

File

plugins/views_plugin_display_block.inc, line 107

Class

views_plugin_display_block
The plugin that handles a block.

Code

function block_caching_modes() {
    return array(
        BLOCK_NO_CACHE => t('Do not cache'),
        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'),
    );
}