Commit 7aabab90 authored by Dries's avatar Dries

- Patch #1045606 by droplet, montesq: hook_block_info() doc should use visibility constants.

parent 6a69b824
......@@ -77,12 +77,12 @@
* enabled theme, the block will be disabled.
* - 'visibility': (optional) Initial value for the visibility flag, which
* tells how to interpret the 'pages' value. Possible values are:
* - 0: Show on all pages except listed pages. 'pages' lists the paths where
* the block should not be shown.
* - 1: Show only on listed pages. 'pages' lists the paths where the block
* should be shown.
* - 2: Use custom PHP code to determine visibility. 'pages' gives the PHP
* code to use.
* - BLOCK_VISIBILITY_NOTLISTED: Show on all pages except listed pages.
* 'pages' lists the paths where the block should not be shown.
* - BLOCK_VISIBILITY_LISTED: Show only on listed pages. 'pages' lists the
* paths where the block should be shown.
* - BLOCK_VISIBILITY_PHP: Use custom PHP code to determine visibility.
* 'pages' gives the PHP code to use.
* Most modules do not provide an initial value for 'visibility' or 'pages',
* and any value provided can be modified by a user on the block
* configuration screen.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment