Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3485117
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3485117
Commits
7aabab90
Commit
7aabab90
authored
14 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#1045606
by droplet, montesq: hook_block_info() doc should use visibility constants.
parent
6a69b824
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/block/block.api.php
+6
-6
6 additions, 6 deletions
modules/block/block.api.php
with
6 additions
and
6 deletions
modules/block/block.api.php
+
6
−
6
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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment