Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jan 2012 at 09:39 UTC
Updated:
29 Jul 2014 at 20:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
joachim commentedHere's a patch.
Comment #2
jhodgdonSeems like a good thing to fix, thanks!
The documentation in the patch needs some cleanup:
- All lines should wrap as close to 80 characters as possible without going over.
- Needs some copy editing (grammar etc.).
- "ie" should be "i.e.,".
- "UI" should be written out as "user interface".
It's also actually not accurate to say there is no user interface for this. There is a path for it (admin/compact), so if someone visits admin/compact/on or admin/compact/off, it will turn compact mode on/off. theme_system_compact_link() makes these links, and this is called in several places in the code.
Comment #3
joachim commentedadmin/compact sets the cookie; it doesn't set the variable.
Comment #4
jhodgdonTrue. But the patch says "This is hidden, ie there is no UI to control it,...", without explaining whether "this" refers to the cookie or the variable. I read it to say that there was no user interface for anything related to this function.
So, I don't think it would hurt to be clear, or to point out the UI for the cookie, or at least @see the related functions. Right?
Comment #5
sven.lauer commentedWhile we are improving the docs for this function, wouldn't it be nice to explain what compact mode _is_?
Comment #6
jhodgdonYes, that too.
Comment #7
joachim commentedShan't bother with a patch while we refine the text:
Comment #8
jhodgdonLooks pretty good...
A couple of grammar/usage/typographical nitpicks:
- "i.e.", as you are using it, needs a comma after it. Or "i.e." could just be left out without changing the meaning in any way, I think?
- "Determines if" -> "Determines whether"
Also, maybe this explanatory text should mention that if the admin_compact_mode variable is not set, it defaults to FALSE?
Comment #9
jhodgdonforgot status change on previous comment
Comment #10
joachim commentedComment #11
jhodgdonThat looks reasonable - I think it's ready for a patch. Thanks!
Comment #12
joachim commentedDone.
Comment #13
jhodgdonThanks, looks good to me!
Comment #14
dries commentedCommitted to 8.x and back-ported to 7.x.
Comment #16
cweagansUpdating tags per http://drupal.org/node/1517250