Needs work
Project:
Nodequeue
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2009 at 06:14 UTC
Updated:
16 Dec 2010 at 10:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
ezra-g commentedGreat question! The answer seems to be that you can't. It would be relatively simple to add a hook for queue deletion, probably involving nodequeue_delete(). Patches welcome :).
I'm interested to hear what kid of subqueue you're creating.
Comment #2
jmather commentedHere is a shot at a patch. I think it is pretty simple, the only question would be if there is a better way to get the queue before the delete?
Comment #3
ezra-g commentedMarking as needs review.
Comment #4
ezra-g commentedThanks for the patch! This looks like a good start. We should probably place this new hook in the nodequeue_delete function, so that it will be called even when queues are deleted programatically, not just through the interface.
This looks otherwise commit worthy.
Comment #5
jmather commentedAttached with api call moved to nodequeue_delete.
Let me know if that works.
Thanks.
Comment #6
jmather commentedAny update on getting this merged in?
Thx.
Comment #7
ezra-g commentedSorry, this was marked as "needs work" so I didn't see it. Hope to review this weekend. Thanks for the bump!
Comment #8
ezra-g commentedThanks for the re-roll.
This needs a bit more work before it can be committed:
A) Since we're firing this hook in nodequeue_delete instead of nodequeue_delete_submit, the hook should probably be called nodequeue_api_queue_admin_delete
B) There's no reason to pass the empty $form_state variable.
Sorry about the delay in re-reviewing this. I can turn this around quicker with another re-roll.
Thanks!
Comment #9
pbuyle commentedWe need this feature for one of our project. So I updated the patch from #5 updated to fit recommandation in #8.
Comment #10
pbuyle commentedComment #11
Steven Merrill commentedPatch attached with a small code style cleanup and an extra test.
This patch is totally bunk. Grr.
Comment #13
pbuyle commentedI fail to see what failed for the automated testing of my patch submission in #9. The log at http://qa.drupal.org/pifr/test/113444 only says "'failed to complete installation".
Comment #14
eric_a commentedFails due to #996512: D6 contrib project tests: [MySQL] Drupal installation failed..
Comment #15
pbuyle commented#11: smerrill-606150-nodequeue-delete-hook.patch queued for re-testing.