hook_link() was deprecated in D7. The attached patch uses hook_node_view to generate the links.

Comments

amateescu’s picture

Status: Needs review » Fixed
StatusFileSize
new7.56 KB

Good catch, but the patch is not so simple because nodequeue_node_view() doesn't return a $links array as hook_link() did in 6.x.

I created a new function nodequeue_node_links that receives a node object and returns an array of links, and used it in nodequeue_node_view() and the views field handler.

Commited attached patch to 7.x.

http://drupalcode.org/project/nodequeue.git/commit/d7b9b88

Jerome F’s picture

thank you - I had to upgrade to last dev and it's fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.