From a8b218827a400cf5ced7db133be0a0f9e2180875 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 1 Nov 2005 10:17:34 +0000 Subject: - Patch #26139 by webchick / Kieran / documentation team: improved admin help of core modules! / --- modules/block.module | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'modules/block.module') diff --git a/modules/block.module b/modules/block.module index f94de166c..5770d2769 100644 --- a/modules/block.module +++ b/modules/block.module @@ -12,21 +12,30 @@ function block_help($section) { switch ($section) { case 'admin/help#block': - return t(' -

Blocks are the boxes visible in the sidebar(s) of your web site and other regions. These are usually generated automatically by modules (e.g. recent forum topics), but you can also create your own blocks.

-

The region each block appears in depends on both which theme you are using (some are left-only, some right, some both, and some may offer other regions), and on the settings in block management.

-

The block management screen lets you specify the vertical sort-order of the blocks within a sidebar. You do this by assigning a weight to each block. Lighter blocks (smaller weight) "float up" towards the top of the sidebar. Heavier ones "sink down" towards the bottom of it.

-

A block\'s visibility depends on:

+ $output = '

'. t('Blocks are the boxes of related/grouped data that are visible in the sidebar(s) of your web site. These are usually generated automatically by modules (e.g. recent forum topics), but administrators can also create their own defined blocks.') .'

'; + $output .= '

'. t('The sidebar each block appears in depends on both which theme you are using (some are left-only, some right, some both), and on the settings in block management.') .'

'; + $output .= '

'. t('The block management screen lets you specify the vertical sort-order of the blocks within a sidebar. You do this by assigning a weight to each block. Lighter blocks (smaller weight) "float up" towards the top of the sidebar. Heavier ones "sink down" towards the bottom of it.') .'

'; + $output .= t('

A block\'s visibility depends on:

- -

Administrator defined blocks

-

An administrator defined block contains content supplied by you (as opposed to being generated automatically by a module). Each admin-defined block consists of a title, a description, and a body which can be as long as you wish. The Drupal engine will render the content of the block.

'); +'); + $output .= '

'. t('Module blocks') .'

'; + $output .= '

'. t('Module blocks are available when modules are enabled. These blocks can be administered in block administration.') .'

'; + $output .= '

'. t('Administrator defined blocks') .'

'; + $output .= '

'. t('An administrator defined block contains content supplied by the administrator. Each admin-defined block consists of a title, a description, and a body which can be as long as you wish. The Drupal engine will render the content of the block.') .'

'; + $output .= t('

You can

+ +', array('%admin-block' => url('admin/block'), '%admin-block-add' => url('admin/block/add'))); + $output .= '

'. t('For more information please read the configuration and customization handbook Block page.', array('%block' => 'http://www.drupal.org/handbook/modules/block/')) .'

'; + return $output; case 'admin/modules#description': return t('Controls the boxes that are displayed around the main content.'); case 'admin/block': -- cgit v1.2.3