You are here

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