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
Comment #1
Todd Nienkerk CreditAttribution: Todd Nienkerk commentedI'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! :)
Comment #2
Todd Nienkerk CreditAttribution: Todd Nienkerk commentedIt's been two years. If there were a problem, someone would have spoken up by now. :)