summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Corbin2013-04-09 13:28:24 (GMT)
committer Sebastien Corbin2013-04-09 13:28:24 (GMT)
commit70d99140be211be8884ac839db0ba05fdcf48875 (patch)
treefca7057cec9bf6208a842bc53485cabc2b418d2e
parent6dc82fa1ee00cc74f4454ba15a8c10024076b239 (diff)
Issue #1960348 by SebCorbin: Fixed Nodequeue generate fails.
-rw-r--r--nodequeue_generate.module4
1 files changed, 1 insertions, 3 deletions
diff --git a/nodequeue_generate.module b/nodequeue_generate.module
index 1e087be..f02b4fa 100644
--- a/nodequeue_generate.module
+++ b/nodequeue_generate.module
@@ -97,11 +97,9 @@ function nodequeue_generate_repopulate_queues($queues, $nodes_limit = 10) {
// Load all queues and their subqueues.
$queues = nodequeue_load_queues($queues);
- $subqueues = nodequeue_load_subqueues_by_queue($queues);
// Re-populate subqueues
- foreach ($queues as $name) {
- $queue = nodequeue_load($name);
+ foreach ($queues as $queue) {
// Skip nodequeues that do not belong to any node types.
if (!empty($queue->types)) {