在drupal中加载节点的PHP代码不工作


load node in drupal the php code is not working

我已经创建了一个使用node_load方法访问内容的节点。嵌入在节点中的php代码作为文本打印,而不是执行php脚本。

<?php 
    $theme_path = $base_path.path_to_theme(); 
?>
<img src="<?php print $theme_path;?>/images/menu-line.png" width="113" height="1">

并使用node_load方法从page.tpl.php访问该节点。

<?php 
    $result  = node_load(array('title' => 'node menu'));
    print $result->body; 
?>

听起来该节点的文本格式被设置为过滤或完整的HTML。应该设置为php.