function 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 106

Class

views_plugin_display_block
The plugin that handles a block.

Code

public function block_caching_modes() {
    return array(
        DRUPAL_NO_CACHE => t('Do not cache'),
        DRUPAL_CACHE_GLOBAL => t('Cache once for everything (global)'),
        DRUPAL_CACHE_PER_PAGE => t('Per page'),
        DRUPAL_CACHE_PER_ROLE => t('Per role'),
        DRUPAL_CACHE_PER_ROLE | DRUPAL_CACHE_PER_PAGE => t('Per role per page'),
        DRUPAL_CACHE_PER_USER => t('Per user'),
        DRUPAL_CACHE_PER_USER | DRUPAL_CACHE_PER_PAGE => t('Per user per page'),
    );
}