When using a hook_link to remove a node from a subqueue the hook_nodequeue_remove gets called twice. It gets called once in nodequeue_subqueue_remove_node(), and then again in nodequeue_subqueue_remove.

I've removed the module_invoke from nodequeue_subqueue_remove_node().. I'm not sure how many paths to those functions there are, so removing it from the function lowest in the call stack made sense to me.

Comments

beeradb’s picture

Title: hook_nodequeue_remove gets called twice on node deletion. » hook_nodequeue_remove gets called twice when a node is removed from a subqueue.

More accurate title.

ezra-g’s picture

Version: 6.x-2.9 » 7.x-2.x-dev
Status: Needs review » Patch (to be ported)

Looks good. Committed, thanks!

http://drupal.org/cvs?commit=471724

amateescu’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new491 bytes

Patch for 7.x.

amateescu’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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