README.txt in Util 5
++Node Type Check
For block visibility it is often desired to show blocks on nodes of certain
types. The util_check_node_type function does just that. You can now easily
get this functionality using a block visibility test like:
<?php
return util_check_nodetype(array('blog','image'));
?>
Placing that code in the "Page specific visibility settings" and selecting
"Show if the following PHP code returns TRUE (PHP-mode, experts only)." will
show the block on all pages of type blog or image.
++Reporting problems
See http://drupal.org/project/util for details on how to report problems
File
README.txt
View source
-
-
-
- ++Node Type Check
-
- For block visibility it is often desired to show blocks on nodes of certain
- types. The util_check_node_type function does just that. You can now easily
- get this functionality using a block visibility test like:
-
- return util_check_nodetype(array('blog','image'));
- ?>
-
- Placing that code in the "Page specific visibility settings" and selecting
- "Show if the following PHP code returns TRUE (PHP-mode, experts only)." will
- show the block on all pages of type blog or image.
-
- ++Reporting problems
- See http://drupal.org/project/util for details on how to report problems
-
-
-
-