Update Readme Documentation for API changes

droopy - February 2, 2009 - 12:14
Project:Nodequeue
Version:6.x-2.x-dev
Component:Documentation
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

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?

<?php
print nodequeue_fetch_random(1, $teasers = true, $links = false);
?>

#1

ezra-g - February 2, 2009 - 22:28
Status:active» fixed

Yes, 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.

#2

droopy - February 3, 2009 - 12:08

Sorry, I can't find anything in the release notes and I've no idea where the function descriptions are. The documentation still has:

<?php
nodequeue_fetch_random
($qid, $teasers = TRUE, $links = TRUE)
?>

What am I missing?

#3

droopy - February 3, 2009 - 12:09
Status:fixed» postponed (maintainer needs more info)

Sorry, forgot to reopen.

#4

ezra-g - February 5, 2009 - 00:51
Title:Block not working » Update Documentation for API changes
Component:Code» Documentation
Category:support request» task
Status:postponed (maintainer needs more info)» active

I 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.

#5

fletchgqc - February 10, 2009 - 21:46

My code was working fine with v1, now I've upgraded to 2.x and changed the code to say:

<?php
$thenode
= nodequeue_load_back(4);
print
node_view($thenode);
?>

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).

#6

fletchgqc - February 10, 2009 - 22:11

Hmm... 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.

#7

ezra-g - March 24, 2009 - 15:47
Title:Update Documentation for API changes» Update Readme Documentation for API changes

#8

ezra-g - March 28, 2009 - 15:40

I updated this information in the README

 
 

Drupal is a registered trademark of Dries Buytaert.