The docs for global $conf on api.drupal.org (http://api.drupal.org/api/global/conf) are wrong. They need to be corrected.
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | 338178-devdocs_globals_conf-3.diff | 571 bytes | jeffschuler |
| #18 | 338178-devdocs_globals_conf-3.txt | 571 bytes | jeffschuler |
| #13 | 338178-devdocs_globals_conf-2.diff.txt | 595 bytes | jeffschuler |
| #10 | 338178-devdocs_globals_conf-2.diff | 595 bytes | jeffschuler |
| #8 | 338178-devdocs_globals_conf.diff | 587 bytes | jeffschuler |
Comments
Comment #1
add1sun commentedmoving to correct queue
Comment #2
matason commentedLooking at the documentation for other globals it seems to be quite concise so here's my first attempt at describing $conf
$conf is... "An array of key/value pairs generated in bootstrap.inc from 'Variable overrides' in settings.php and name/value data from the 'variable' table."
Should we mention anything about the related functions variable_get(), variable_set() and variable_del()?
Comment #4
cwgordon7 commentedMentioning the related functions sounds like a good idea. Patch coming? :)
Comment #5
matason commentedOkay, will add that tomorrow, quite tired now!
I believe I need a CVS account to checkout the right file to patch against - see http://drupal.org/node/252375 where I was trying to help with a similar issue.
I applied for a CVS account over 2 weeks ago but am still waiting for a reply so maybe I'll write this up and someone else can actually make the patch.
Thanks for the input, appreciated!
Chris
Comment #6
add1sun commented@matason, well you can create a patch without a CVS account. You only need the account to *commit* the change. If you supply a patch someone else with commit access can add it.
Comment #7
jeffschulerComment #8
jeffschulerPatch to document global
$confas:I thought it unnecessary to include mention of variable overrides in
settings.php.Thanks @matason!
Comment #10
jeffschulerCreated a new patch to (hopefully) fix previous failed one.
I had originally checked out from:
/cvs/drupal/contributions/docs/developer...I've changed to:
/cvs/drupal-contrib/contributions/docs/developerComment #11
cwgordon7 commentedLooks pretty good! Assuming the patch now applies, rtbc.
Comment #13
jeffschulerDavidStrauss suggested a solution here to append ".txt" to the patch filename -- to trick the testbed into not testing this patch against core, (since it's really just part of docs/developer.)
I'm doing so, but is there a better way?
boombatower's blog post, Testing.drupal.org is running!, suggests that patches for component
documentationshould be ignored, but I don't see an issue posted, (at a glance.)Comment #14
cwgordon7 commentedAwesome, cool, rtbc. :)
Comment #16
cwgordon7 commentedUh, testing bot, stop it. (Trying again,,,)
Comment #17
sunPHPDoc summaries must not be wrapped. Everything starting from "Use ..." belongs to the PHPDoc description and thus needs a blank line to separate the description from the summary. On that note, @see would be much cleaner instead of that second sentence.
Comment #18
jeffschulerUnderstood; thank you, sun. Modified to follow your recommendations.
And naming file as ".txt" (without ".diff" this time) in hopes that testing bot ignores.
Comment #19
sunYour patch should end in .patch (as extension).
From the description: "only files ending in .patch or .diff will be sent for testing! For patches that apply specifically to Drupal 5 or Drupal 6, you can prefix the extension with -D5 or -D6 to prevent them from being queued for testing. For example, foo.patch and bar.diff would both be queued for testing, whereas foo-D5.patch and bar-D6.diff would not be queued for testing."
All patches for Drupal core (HEAD) need to pass tests.
Comment #20
jeffschulerI'm resubmitting as .diff, but this patch is not for HEAD -- it's for the developer docs.
The reason I don't want the testing bot to run it is because it thinks this is part of HEAD and fails applying the patch, (please see #8, #10, #13.)
Am I misunderstanding something?
Comment #22
sunOh, sorry, I did not realize that this patch does not touch the actual code-base.
Fixes look good.
Comment #23
dries commentedThis isn't a D7 core patch ...
Comment #24
cha0s commentedwebchick requested that I commit these fixes, so I have committed the changes to 6 and 7.
Comment #26
Alexandros78 commentedIt would also be nice to know what $conf includes (which are its elements).
Similar to the list provided for the $user object:
http://api.drupal.org/api/drupal/developer--globals.php/global/user/6