Hi,

We would like to suggest a more user friendly description for the block class field on the block edit form. Your description is good and needed for developers (superadmin role) but site editor doesn't need to know anything about block_class($block) function. He just need a simple and clear description of this field.

It can be done either by checking $GLOBALS['user']->uid or by checking 'administer blocks' permission which is of course better.

This is how we did it in our project:

    '#description' => (1 == $GLOBALS['user']->uid) ?
      t('IMPORTANT: You must add <?php print block_class($block); ?> to your theme\'s block.tpl.php file to make the classes appear.'):
      t('Select styles for this block. You can choose multiple styles.'),

Please consider this suggestion because many clients afraid of such descriptions and waste our time asking for explanations.

Thank you.

Comments

Todd Nienkerk’s picture

Title: More user friendly description for block class field » More user friendly description for Block Class settings
Version: 6.x-1.3 » 6.x-1.x-dev
Component: Code » User interface
Status: Active » Needs review

I've changed the Block Class settings UI to use copy and logic similar to what's proposed above. I made this change to the 6.x-1.x and 7.x-1.x branches.

Please help test! :)

Todd Nienkerk’s picture

Status: Needs review » Fixed

It's been two years. If there were a problem, someone would have spoken up by now. :)

Status: Fixed » Closed (fixed)

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