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.
Background: http://drupal.org/node/537828
Here is the patch for updating the Block module's Help function. Minor rewrites.
- Is "My Account" still the page name for /user/%/edit?
- I removed the mention of PHP visibility settings, as it seems to have been removed (http://drupal.org/node/224333#php_permissions - search for "visibility")
(@jhodgdon has already given a thumbs up to it on the other thread)
Comment | File | Size | Author |
---|---|---|---|
#35 | blockfixup2.patch | 5.32 KB | arianek |
#29 | blockfixup2.patch | 5.32 KB | arianek |
#28 | blockfixup.patch | 2.01 KB | jhodgdon |
#17 | help_block4.patch | 2 KB | arianek |
#9 | help_block3.patch | 5.39 KB | arianek |
Comments
Comment #1
lisarex CreditAttribution: lisarex commentedApplied patch and it looks good. Few small suggestions:
To clarify for newbies, maybe add 'not visible to anyone but administrators' or 'not visible to the public'? or is that overkill?
Or "Administrators can also allow specific blocks to be enabled or disabled by users when they visit the My account page."
But otherwise patch looks great :)
Comment #2
arianek CreditAttribution: arianek commentedhey lisarex, thanks for the review!
the first suggestion, i would have to disagree with, because it's not true that they're visible to admins - they really aren't displayed anywhere regardless of user role if they are not enabled. *but* i think that those few sentences could still be cleaned up a bit more to make them clearer, so i'll do a little more work on that.
the second, i totally think that's a better explanation, and actually makes it clearer that making it user-controlled visibility is on a block-by-block basis. nice one!
i'll roll another patch with the changes when i get a chance.
Comment #3
lisarex CreditAttribution: lisarex commentedre: my first comment, I was (badly) suggesting that although that the blocks aren't shown publicly, to the admin person reading the help, they can see the disabled block entry on the blocks administration page; it's just that it's listed down in the Disabled section. If there's an elegant and concise way to explain that, cool. :)
Comment #4
arianek CreditAttribution: arianek commentedah! gotcha - ok, i've edited those two sections (and added a link to the /user page for "My account") here's the revised version!
Comment #5
lisarex CreditAttribution: lisarex commentedLooks good. RTBC (since it was already given the thumbs up by @jhodgdon)
Comment #6
arianek CreditAttribution: arianek commentedi can't believe i'm un-RTBCing my own patch, but just until this http://drupal.org/node/537828#comment-2281990 gets solved, i don't think any of the help patches should be committed! i'll re-RTBC it when it's solved.
Comment #7
arianek CreditAttribution: arianek commentedsorted - returning to RTBC! ps. this is my official FIRST CORE PATCH!!! (ie. that i wrote, not just reviewed) woooooo!!!
Comment #8
webchickThis looks really great! But one thing I'd add is a section in the "Uses" area about the fact that you can also add your own custom blocks.
Comment #9
arianek CreditAttribution: arianek commentedadded that section at the end of uses, new patch ahoy!
Comment #10
webchickLooks great to me...
(drumroll...)
COMMITTED TO HEAD!
Great job, ariane! What an AWESOME first core patch. :D
Comment #11
arianek CreditAttribution: arianek commentedyou didn't make it go greeeeeen. :-p
Comment #12
arianek CreditAttribution: arianek commentedps. thanks so much for all your rad help getting me this far. :-)
Comment #13
webchickOh, shoot! Sorry about that. :)
GREENED!
Comment #14
arianek CreditAttribution: arianek commentedWOOOOOOOOT :-)
Comment #15
batigolixdon't want to spoil the party but Jennifer repeatedly commented that for uniformity's sake all help texts should start with "The xyz module blah blah blah". see e.g. comment #4 in #633808: Help File Fixup: Image module
your version starts with "Blocks are boxes of content rendered into an area, or region, of one or more pages of a website. "
as this is a complex sentence already i can't suggest an improvement without breaking too much. a conservative attempt to rewrite would be:
"The block module allows you to put boxes of content ('blocks') into an area, or region, of one or more pages of a website."
Comment #16
batigolixand line 21 misses a dot
$output = '<h3>' . t('About') . '</h3>';
=>
$output .= '<h3>' . t('About') . '</h3>';
Comment #17
arianek CreditAttribution: arianek commentedMade the change in comment #15, as I am a big fan of consistency.
Re: 16, as I just learned, you do not need a .= but instead only = on the line after this:
$output = '';
Here's a patch against the (already committed) other patch, just gonna RTBC it.
Comment #18
arianek CreditAttribution: arianek commentedactually marking needs review so the test bot gets it, but if someone gets to this before me, once it's tested pls RTBC.
Comment #19
lisarex CreditAttribution: lisarex commentedrtbc
Comment #20
webchickCool, committed to HEAD, with the exception that I added the . before the = on the h3 line, per batigolix. While it's true it's unnecessary since it's the first line of the help text, the rest do this pattern:
So this makes it consistent.
Just a note that when something's RTBC, you can go ahead and mark it that way, and the bot will still test it. If it fails anything, it will happily mark it back to needs work for you. ;)
Comment #21
arianek CreditAttribution: arianek commentedduly noted on both accounts, this is such a learning experience!
Comment #22
jhodgdonThe standard for capitalization is not being followed. See http://drupal.org/node/632280 -- should start with "The foo module" not "The Foo module" according to standard.
Needs a quick repatch or we need to change the standard.
Comment #23
arianek CreditAttribution: arianek commentedall of the links to the handbook pages that were already in the help text were caps'd so that's why i've been making it caps to be consistent with that - so i would actually lean towards changing the standard, as a module name is sort of like a proper name, to me it makes sense...
that said if there's no way on that, yes, we'll have to roll a patch to revert all of the ones that have already been committed, and make sure to catch the rest.
gotta run to an appointment, back later this aft.
Comment #24
jhodgdonThe UX folks approved the standard, way back when. Possibly on purpose, and possibly because they have a standard that we don't know about... We need to confer with them.
And let's continue discussion back on http://drupal.org/node/537828#comment-2301622
#537828: Help text for core modules - update to conform to new standard
Comment #26
jhodgdonI'm reopening this issue, as the Block help screen has two problems:
a) Refers to "The default theme Seven"... Seven is not really the default theme for Drupal. It is set up as the default administration theme if you use the non-expert/default install profile, but if you use the expert install profile, it isn't set up as the default administration theme (at least not currently, though maybe that is a bug in the expert profile?). Anyway, in any case, it isn't the "default theme" for Drupal, that would be Garland. So the help screen should probably say "The administration theme Seven".
b) The top section says "a block may appear in any one of these areas" -- should be consistent and use the official term "Region" here.
Comment #27
jhodgdonJust a note that in another help screen (Shortcut), we refer to Seven as "core Seven administration theme".
Comment #28
jhodgdonHere's a patch that changes the About section to read:
Comment #29
arianek CreditAttribution: arianek commentedjust fixed some caps, otherwise top notch.
Comment #30
jhodgdonThat's quite a different patch from the one I submitted. Does it need a review perhaps?
Oh, I see, you just capitalized Blocks administration page in a couple of places that I missed in my review. Agreed then, RTBC.
Comment #31
arianek CreditAttribution: arianek commentedyup, just a few caps "B"s that's all :-)
Comment #34
jhodgdonThere's no way that particular patch caused that particular test to fail, so I requested a retest.
Comment #35
arianek CreditAttribution: arianek commentedi have the distinct feeling the DOS borked testbot permanently there (as the test didn't really complete) - reuploading the patch.
Comment #36
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks!