Return to Snippet

Revision: 7114
at July 7, 2008 10:08 by shrop


Initial Code
<?php
if (arg(0) == 'forum') {
  return TRUE;
}
if (arg(0) == 'node' && ctype_digit(arg(1))) {
  $node = node_load(arg(1));
  if ($node->type == 'forum') {
    return TRUE;
  }   
}
return FALSE;
?>

Initial URL
http://www.packtpub.com/drupal-5-themes/book

Initial Description
From Drupal 5 Themes book.

Initial Title
Drupal Block Visibility: Show On Forums

Initial Tags
drupal

Initial Language
PHP