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.
Attached patch basicly does it. I added two aditional features:
- provided hook_nodequeue_generate($queue) that must be implemented by the owner of queue. This gives us more flexibility. I implemented nodequeue_nodequeue_generate() and smartqueue_taxonomy_nodequeue_generate() to achieve the same functionality as in D6 version.
- I implemented drush support with following commands:
- nodequeue-generate: takes list of queue names and re-populates them
- nodequeue-generate-all: re-populates all nodequeues
- nodequeue-generate-rehash: rehashes smartqueue taxonomy subqueues
Comment | File | Size | Author |
---|---|---|---|
#2 | nodequeue_generate_port_d7_drush_support_1222094_3.patch | 10.96 KB | amateescu |
#1 | nodequeue_generate_port_d7_drush_support_1222094_2.patch | 12.95 KB | slashrsm |
nodequeue_generate_port_d7_drush_support.patch | 12.89 KB | slashrsm | |
Comments
Comment #1
slashrsm CreditAttribution: slashrsm commentedSome corrections....
Comment #2
amateescu CreditAttribution: amateescu commentedMade a few corrections and commited the attached patch to 7.x-2.x. Thanks @slashrsm!
http://drupalcode.org/project/nodequeue.git/commit/a22351b
Comment #3
amateescu CreditAttribution: amateescu commentedThe patch from #3 doesn't include the drush integration file, this is what was actually commited:
http://drupalcode.org/project/nodequeue.git/commitdiff/a22351b
Comment #4
slashrsm CreditAttribution: slashrsm commentedThere is nodequeue_generate.drush.inc in this patch...
Comment #5
amateescu CreditAttribution: amateescu commentedYes, that file exists in your patch and it was commited. What I was trying to say is that my patch attached in #2 didn't include it, because I made the diff before
git add .
:)Comment #6
slashrsm CreditAttribution: slashrsm commentedOh, now I get it. Sorry for misunderstanding. It's great to have this commited!