Return to Snippet

Revision: 11728
at February 16, 2009 18:05 by lexx


Initial Code
<?php
$types = array('blog','story','articles_links');  // put your allowed types in here, one or more.
$showit = FALSE;

if (arg(0) == 'node' && ctype_digit(arg(1)) && is_null(arg(2))) {
  $node = node_load(arg(1));
  if ($node && in_array($node->type, $types)) {
    $showit = TRUE;
  }
}
return $showit;
?>

Initial URL

                                

Initial Description

                                

Initial Title
Show Block Depending on Content Type

Initial Tags

                                

Initial Language
PHP