Closed (fixed)
Project:
Nodequeue
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2009 at 12:14 UTC
Updated:
11 May 2011 at 23:20 UTC
Is there any reason why the following code in a block works with nodequeue-6.x-2.0-rc3 but crashes the page with 6.x-2.0?
print nodequeue_fetch_random(1, $teasers = true, $links = false);
Comments
Comment #1
ezra-g commentedYes, there was a minor api change which is mentioned in the release notes for the 6.x-2.0 version. Please see the release notes and doxygen function descriptions for clarification and re-open this issue if it is still unclear.
Comment #2
droopy commentedSorry, I can't find anything in the release notes and I've no idea where the function descriptions are. The documentation still has:
nodequeue_fetch_random($qid, $teasers = TRUE, $links = TRUE)What am I missing?
Comment #3
droopy commentedSorry, forgot to reopen.
Comment #4
ezra-g commentedI updated the code examples to reflect the new api changes. see "To render the first or last node from a queue" in the documentation.
The available function list still needs to be updated at the bottom of that page.
For future reference, the function descriptions are commented lines directly above the function definition inside the module.
Comment #5
fletchgqc commentedMy code was working fine with v1, now I've upgraded to 2.x and changed the code to say:
and nothing is printed... despite there being something in the queue. So something is wrong with the doco or the code I think (I'm using 2.0 release).
Comment #6
fletchgqc commentedHmm... on second thoughts I think there's some kind of CCK error causing my problems. I've got a message "warning: Invalid argument supplied for foreach() in /usr/home/caiiorg/dev2/sites/all/modules/cck/content.module on line 1270." so I'll take it up over there.
Comment #7
ezra-g commentedComment #8
ezra-g commentedI updated this information in the README
Comment #9
amateescu commentedI guess this is fixed :)