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)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lisarex’s picture

Applied patch and it looks good. Few small suggestions:

+++ modules/block/block.module	14 Nov 2009 07:19:46 -0000
@@ -17,17 +17,16 @@ define('BLOCK_REGION_NONE', -1);
+      $output .= '<dd>' . t('When working with blocks, remember that all themes do <em>not</em> implement the same regions, or display regions in the same way. Blocks are positioned on a per-theme basis. Disabled blocks, which have not been placed in a region, are never shown.') . '</dd>';

To clarify for newbies, maybe add 'not visible to anyone but administrators' or 'not visible to the public'? or is that overkill?

+++ modules/block/block.module	14 Nov 2009 07:19:46 -0000
@@ -17,17 +17,16 @@ define('BLOCK_REGION_NONE', -1);
+      $output .= '<dt>' . t('Controlling visibility') . '</dt>';
+      $output .= '<dd>' . t('Blocks can be configured to be visible only on certain pages, only to users of certain roles, or only on pages displaying certain <a href="@content-type">content types</a>. When allowed by an administrator, specific blocks may be enabled or disabled on a per-user basis using the <em>My account</em> page. Some dynamic blocks, such as those generated by modules, will be displayed only on certain pages.', array('@content-type' => url('admin/structure/types'))) . '</dd>';

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 :)

arianek’s picture

hey 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.

lisarex’s picture

re: 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. :)

arianek’s picture

FileSize
97.96 KB
4.93 KB

ah! gotcha - ok, i've edited those two sections (and added a link to the /user page for "My account") here's the revised version!

lisarex’s picture

Status: Needs review » Reviewed & tested by the community

Looks good. RTBC (since it was already given the thumbs up by @jhodgdon)

arianek’s picture

Status: Reviewed & tested by the community » Needs review

i 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.

arianek’s picture

Status: Needs review » Reviewed & tested by the community

sorted - returning to RTBC! ps. this is my official FIRST CORE PATCH!!! (ie. that i wrote, not just reviewed) woooooo!!!

webchick’s picture

Status: Reviewed & tested by the community » Needs work

This 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.

arianek’s picture

Status: Needs work » Needs review
FileSize
117.9 KB
5.39 KB

added that section at the end of uses, new patch ahoy!

webchick’s picture

Looks great to me...

(drumroll...)

COMMITTED TO HEAD!

Great job, ariane! What an AWESOME first core patch. :D

arianek’s picture

you didn't make it go greeeeeen. :-p

arianek’s picture

ps. thanks so much for all your rad help getting me this far. :-)

webchick’s picture

Status: Needs review » Fixed

Oh, shoot! Sorry about that. :)

GREENED!

arianek’s picture

WOOOOOOOOT :-)

batigolix’s picture

Status: Fixed » Needs work

don'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."

batigolix’s picture

and line 21 misses a dot

$output = '<h3>' . t('About') . '</h3>';

=>

$output .= '<h3>' . t('About') . '</h3>';

arianek’s picture

FileSize
2 KB

Made 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.

arianek’s picture

Status: Needs work » Needs review

actually marking needs review so the test bot gets it, but if someone gets to this before me, once it's tested pls RTBC.

lisarex’s picture

Status: Needs review » Reviewed & tested by the community

rtbc

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Cool, 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:

$output = '';
$output .= 'First line blah blah...';

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. ;)

arianek’s picture

duly noted on both accounts, this is such a learning experience!

jhodgdon’s picture

The 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.

arianek’s picture

all 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.

jhodgdon’s picture

The 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jhodgdon’s picture

Status: Closed (fixed) » Needs work

I'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.

jhodgdon’s picture

Just a note that in another help screen (Shortcut), we refer to Seven as "core Seven administration theme".

jhodgdon’s picture

Status: Needs work » Needs review
FileSize
2.01 KB

Here's a patch that changes the About section to read:

The Block module allows you to create boxes of content, which are rendered into an area, or region, of one or more pages of a website. The core Seven administration theme, for example, implements the regions "Content", "Help", "Dashboard main", and "Dashboard sidebar", and a block may appear in any one of these regions. The blocks administration page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions. For more information, see the online handbook entry for Block module.

arianek’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
5.32 KB

just fixed some caps, otherwise top notch.

jhodgdon’s picture

That'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.

arianek’s picture

yup, just a few caps "B"s that's all :-)

Status: Reviewed & tested by the community » Needs work
Issue tags: -d7help

The last submitted patch failed testing.

Status: Needs work » Needs review
Issue tags: +d7help

jhodgdon requested that failed test be re-tested.

jhodgdon’s picture

There's no way that particular patch caused that particular test to fail, so I requested a retest.

arianek’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
5.32 KB

i have the distinct feeling the DOS borked testbot permanently there (as the test didn't really complete) - reuploading the patch.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -d7help

Automatically closed -- issue fixed for 2 weeks with no activity.