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 modules/block/block.test
Test DRUPAL_CACHE_PER_ROLE.
BlockTestCase::testBlockRehash in modules/block/block.test
Test _block_rehash().
block_test_block_info in modules/block/tests/block_test.module
Implements hook_block_info().
block_update_7004 in modules/block/block.install
Add new blocks to new regions, migrate custom variables to blocks.
book_block_info in modules/book/book.module
Implements hook_block_info().

... See full list

File

includes/common.inc, line 143
Common functions that many Drupal modules will need to reference.

Code

define('DRUPAL_CACHE_PER_ROLE', 0x0001)