Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
7aabab90
Commit
7aabab90
authored
Feb 04, 2011
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#1045606
by droplet, montesq: hook_block_info() doc should use visibility constants.
parent
6a69b824
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/block/block.api.php
modules/block/block.api.php
+6
-6
No files found.
modules/block/block.api.php
View file @
7aabab90
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment