Shows this block on only the listed pages.

4 uses of BLOCK_VISIBILITY_LISTED
BlockTestCase::testBlockVisibilityListedEmpty in modules/block/block.test
Test block visibility when using "pages" restriction but leaving "pages" textarea empty
block_admin_configure in modules/block/block.admin.inc
Form constructor for the block configuration form.
block_block_list_alter in modules/block/block.module
Implements hook_block_list_alter().
block_update_7004 in modules/block/block.install
Add new blocks to new regions, migrate custom variables to blocks.

File

modules/block/block.module, line 36
Controls the visual building blocks a page is constructed with.

Code

define('BLOCK_VISIBILITY_LISTED', 1)

Comments

heathdutton’s picture

Do not assume that this constant will always be present. Many modules use BLOCK_VISIBILITY_LISTED when the module "blocks" is not a dependency. Panopoly and other distributions do not use blocks, and thus notices are fired when this constant is called...

I'd reccomend that you use 1 in this case instead in custom modules for compatibility.