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:
    1. nodequeue-generate: takes list of queue names and re-populates them
    2. nodequeue-generate-all: re-populates all nodequeues
    3. nodequeue-generate-rehash: rehashes smartqueue taxonomy subqueues
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

slashrsm’s picture

Some corrections....

amateescu’s picture

Status: Needs review » Fixed
FileSize
10.96 KB

Made a few corrections and commited the attached patch to 7.x-2.x. Thanks @slashrsm!

http://drupalcode.org/project/nodequeue.git/commit/a22351b

amateescu’s picture

The patch from #3 doesn't include the drush integration file, this is what was actually commited:

http://drupalcode.org/project/nodequeue.git/commitdiff/a22351b

slashrsm’s picture

There is nodequeue_generate.drush.inc in this patch...

amateescu’s picture

Yes, 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 . :)

slashrsm’s picture

Oh, now I get it. Sorry for misunderstanding. It's great to have this commited!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.