开发者

Drupal 6 - Get node->links in blocks

I want to display $node->links in a block, but node_load only loads the node object without the links. How do I get the 开发者_JAVA百科links?


Well, node links are pulled by hook_link() so you could do:

$links = theme('links', module_invoke_all('link', 'node', $node, $teaser));


Will this module help? http://drupal.org/project/link_node

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜