如何让一个区块在特定的内容类型显示

在区块选项的显示设定部分加入php代码:

<?php
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nid = arg(1);
$node = node_load(array('nid' => $nid));
$type = $node->type;
if ($type=='blog') {
return TRUE;
}else{
return FALSE;
}
}
?>