You are here

function views_plugin_display_block::block_caching_modes in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_display_block.inc \views_plugin_display_block::block_caching_modes()
  2. 7.3 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 101
Contains the block display plugin.

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'),
  );
}