Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Is there a way/function to programmatically delete an item from any queue or maybe an specific queue? For nodequeue I used nodequeue_node_delete() but I don't know what's the equivalent for entityqueue. Thanks.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2982689.patch | 1.3 KB | amateescu |
Comments
Comment #2
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedCan you try this function?
Comment #3
lukasss CreditAttribution: lukasss as a volunteer commentedLooks good!
Comment #4
zietbukuel CreditAttribution: zietbukuel commented@amateescu would this work for D7?
Comment #5
amateescu CreditAttribution: amateescu for Pfizer, Inc. commented@zietbukuel #2 only works for D7 :) In D8 it would be much easier to do..
Give it a try and if it works for you, I'll commit it to the 7.x-1.x branch.
Comment #6
lukasss CreditAttribution: lukasss as a volunteer commentedThis is work!
Comment #7
zietbukuel CreditAttribution: zietbukuel commentedYes, I can confirm this works fine.
Comment #9
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedThanks for testing! Committed and pushed to 7.x-1.x.
Moving to 8.x now :)
Comment #10
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedThe ability to remove an item programmatically was added to 8.x in #2145441: Add an Entityqueue tab on entity pages.