Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current docblock for theme_get_setting includes notes for core developers if they update the module. That should be a code comment, not a part of the "how do I use this function" documentation.
Comment | File | Size | Author |
---|---|---|---|
#5 | theme-get-setting-docblock-716554-5.patch | 2.67 KB | JohnAlbin |
#3 | theme-get-setting-docblock-716554-3.patch | 2.66 KB | JohnAlbin |
#1 | theme-get-setting-docblock-716554-1.patch | 1.91 KB | JohnAlbin |
Comments
Comment #1
JohnAlbinThis patch makes minor tweaks to the theme_get_setting comments and moves this entire paragraph to a code comment:
Comment #2
Nick Lewis CreditAttribution: Nick Lewis commentedI think the next paragraph should simply read "The site-wide defaults are used unless overridden by theme specific settings, or settings declared in theme's .info file." and then its good to go.
Comment #3
JohnAlbinWhat Nick says makes it clear that my changes are insufficient to clarify what the hell is going on. I know the code very well, but didn't update the docs much when I re-wrote the code.
Per the conversation I had with Nick in IRC, I'm replacing all the refs to "site-wide settigns" with "global settings" since that's the text that is used on the admin/appearance/settings form.
Here's a complete re-write of the docs and some of the comments.
Comment #4
JohnAlbinBetter title.
Comment #5
JohnAlbinOne more tweak regarding what it means to pass an empty string to $theme per Nick's request in IRC.
Comment #6
Nick Lewis CreditAttribution: Nick Lewis commentedComment #7
Dries CreditAttribution: Dries commentedCommitted. Thanks John.