Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The nodequeue_remove hook is not invoked in all necessary places so that it is called whenever an item is deleted from a subuqueue. It is currently invoked in nodequeue_subqueue_remove() and nodequeue_subqueue_remove_node(), but the one place where it needs to be invoked is in nodequeue_save_subqueue_order(), since this is where all items for a specific subqueue are removed and then added back in when the subqueue admin form is saved. The attached patch adds an invocation of hook_nodequeue_remove in nodequeue_save_subqueue_order().
Comment | File | Size | Author |
---|---|---|---|
nodequeue_add_remove_hook.patch | 796 bytes | wonder95 | |
Comments
Comment #1
ezra-g CreditAttribution: ezra-g commentedThanks for the patch! Marking as needs review.
Comment #2
ezra-g CreditAttribution: ezra-g commentedWith the additional else if in this patch, we can change the existing last else if to simply 'else'. I re-rolled and committed. Thanks!