2010-02-08 42 views
0

以下代碼是主題函數theme_jcalendar_view方法的默認值。Drupal日曆彈出式主題

<?php 
    function theme_jcalendar_view($node) { 
     $output = node_view($node, TRUE); 
     $output .= '<div id="nodelink">'. l(t('more', array(), $node->language),   calendar_get_node_link($node)) .'</div>'; 
     return $output; 
    } 
?> 

在我的主題中,我想輸出節點的整個主體而不是傳情?我將如何做到這一點?我想我將該方法添加到我的自定義template.php文件中,名稱爲myThemeName_theme_jcalendar_view。

感謝

琳達

回答

0

有一個看的API node_view真正是傳情。所以,做一些像我的代碼應該工作(未測試):

<?php 
    function mytheme_jcalendar_view($node) { 

回報node_view($節點); } ?>

+0

這似乎不工作 – Linda 2010-02-08 15:35:57

+0

更新的代碼現在應該工作 – Rupert 2010-02-08 15:49:04