You are here

2 May 2012

How to add node to nodequeue using a little code. You can make it automatic using Rules and PHP filter module(in core that adds option to add PHP code to textarea).

Source code viewer
  1. $nodequeue_queue_id = 1;
  2. $nid = 12;
  3.  
  4. $queue = nodequeue_load($nodequeue_queue_id);
  5. $subqueue = nodequeue_load_subqueue($nodequeue_queue_id);
  6. nodequeue_subqueue_add($queue, $subqueue, $nid);
Programming Language: PHP