Getting the nodequeue id from the nodequeue name? I want to get the nodequeue qid from the nodequeue  name.

Suppose I have a node queue with the name of "Slider". I want a function so that I pass it the name of the nodequeue and It returns the qid or sqid of that nodequeue.

Is it possible?
There is a function of the same name as in the excepted answer included in current versions of the nodequeue module. 

$queue = nodequeue_load_queue_by_name($name);


It returns the queue definition, or an empty array if no queue was found with the given machine name. So the id would be found at:

$queue-&gt;qid;