From 7aabab90cf6f979ab72f45a31dd5033496d22f67 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Fri, 4 Feb 2011 20:09:15 +0000 Subject: [PATCH] - Patch #1045606 by droplet, montesq: hook_block_info() doc should use visibility constants. --- modules/block/block.api.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/block/block.api.php b/modules/block/block.api.php index 7b2ce0571d02..8d74d94e37a8 100644 --- a/modules/block/block.api.php +++ b/modules/block/block.api.php @@ -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. -- GitLab