constant DRUPAL_CACHE_PER_ROLE
The block or element can change depending on the user's roles.
This is the default setting for blocks, used when the block does not specify anything.
Related topics
7 uses of DRUPAL_CACHE_PER_ROLE
- BlockCacheTestCase::testCachePerRole in drupal-7.x/
modules/ block/ block.test - Test DRUPAL_CACHE_PER_ROLE.
- BlockTestCase::testBlockRehash in drupal-7.x/
modules/ block/ block.test - Test _block_rehash().
- block_test_block_info in drupal-7.x/
modules/ block/ tests/ block_test.module - Implements hook_block_info().
- block_update_7004 in drupal-7.x/
modules/ block/ block.install - Add new blocks to new regions, migrate custom variables to blocks.
- book_block_info in drupal-7.x/
modules/ book/ book.module - Implements hook_block_info().
File
- drupal-7.x/
includes/ common.inc, line 143 - Common functions that many Drupal modules will need to reference.
Code
define('DRUPAL_CACHE_PER_ROLE', 0x0001)