Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2010 at 17:47 UTC
Updated:
9 Nov 2010 at 15:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
scott falconer commentedSubscribe.
Comment #2
amateescu commentedFirst try. I couldn't find $options['request'] so this patch is addressing only jhodgdon's comment.
Comment #3
jhodgdonSorry. It's the request component of the $options argument that we were referring to.
Also, in lists, it is preferred *not* to put the components in quotes. "The keys should not be put in quotes unless they contain colons (which is unlikely)." (from http://drupal.org/node/1354#lists). I realize many many places in the drupal source code have quotes, but that's our current recommendation.
Otherwise, that's a good start...
Comment #4
amateescu commentedOk, second try.
Comment #5
jhodgdonOops, my mistake. The new text should be part of the data component of $options. Sorry!
Also, as long as we are fixing things:
An array which can have one or more of the following keys:
==>
An array that can have one or more of the following elements:
Also, I don't think (three) is necessary in:
Defaults to 3 (three).
Comment #7
amateescu commentedDone. I'm not sure about the quotes added to the example string, but without them the sentence would end with "....".
Comment #8
amateescu commentedRemoved 'array' from $options param.
Comment #9
jhodgdonWhy did you remove 'array' from the $options param? That was correct, actually. And the @return could say @return object as well.
Missing:
An array which can have one or more of the following keys:
==>
An array that can have one or more of the following elements:
Also, an object doesn't have "parameters", so
An object which can have one or more of the following parameters:
==>
An object that can have one or more of the following components:
(In both cases, "which" -> "that", and the last word needs to change.)
Comment #10
amateescu commentedI removed 'array' because @yched told me to in another issue: http://drupal.org/node/948116#comment-3616214
I will upload a new patch in a few hours when I get home.
Comment #11
jhodgdonyched was wrong.
http://drupal.org/node/1354#functions
Comment #12
amateescu commentedI can see that now.. new patch attached.
Comment #13
amateescu commentedComment #14
jhodgdonLooks good, thanks for all the iterations!
Comment #15
dries commentedCommitted to CVS HEAD. Thanks.