开发者

Drupal Calendar Popup Theme

The following code is the default for the method theme_jcalendar_view which is a theme function.

<?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;
    }
?>

In my theme I want to output the full body of the node rather than the teaser? How would I do this? I think I add the method to my custom template.php file with the name myThemeName_t开发者_开发知识库heme_jcalendar_view.

Thanks

Linda


Having a look at the api for node_view the true is the teaser. So doing something like my code should work (not tested):

<?php
  function mytheme_jcalendar_view($node) { 

return node_view($node); } ?>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜