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 commentedCan you try this function?
Comment #3
lukasss commentedLooks good!
Comment #4
zietbukuel commented@amateescu would this work for D7?
Comment #5
amateescu 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 commentedThis is work!
Comment #7
zietbukuel commentedYes, I can confirm this works fine.
Comment #9
amateescu commentedThanks for testing! Committed and pushed to 7.x-1.x.
Moving to 8.x now :)
Comment #10
amateescu commentedThe ability to remove an item programmatically was added to 8.x in #2145441: Add an Entityqueue tab on entity pages.