Great to have this module - it's a nice addition to Drupal! Also, I was pleased to see that you provide support for views, so the PHP snippets aren't required. A note to that effect in the documentation might be useful.

Any chance you could add functionality for a boolean check (accessible from a theme template) that would test if a particular node id was in any queue, or perhaps in a particular queue (after being passed a qid)? I'm sure it's probably not difficult to do if you're knowledgeable, but am afraid it's quite beyond my own skills.

Thanks for the consideration!

Comments

merlinofchaos’s picture

Version: 5.x-1.2 » 5.x-2.0
ezra-g’s picture

Title: Test if node id in queue » Test if NID in queue\subqueue - API Function
Version: 5.x-2.0 » 5.x-2.2

You can query the nodequeue_nodes table for the nid of the node and add a WHERE clause to SELECT specific qids\sqids. This sounds like a reasonable addition to the nodequeue API since it might prevent other modules from rewriting those queries.

daniboy’s picture

It seems that nodequeue_get_subqueue_position() solves this old issue - It can be called (bool)nodequeue_get_subqueue_position($sqid, $nid) to get a boolean value.

amateescu’s picture

Status: Active » Closed (fixed)

#3 is correct.