function block_help in Drupal 5
Same name and namespace in other branches
- 8 core/modules/block/block.module \block_help()
- 4 modules/block.module \block_help()
- 6 modules/block/block.module \block_help()
- 7 modules/block/block.module \block_help()
- 9 core/modules/block/block.module \block_help()
Implementation of hook_help().
File
- modules/
block/ block.module, line 17 - Controls the boxes that are displayed around the main content.
Code
function block_help($section) {
switch ($section) {
case 'admin/help#block':
$output = '<p>' . t('Blocks are boxes of content that may be rendered into certain regions of your web pages, for example, into sidebars. Blocks are usually generated automatically by modules (e.g., Recent Forum Topics), but administrators can also define custom blocks.') . '</p>';
$output .= '<p>' . t('The region each block appears in depends on both which theme you are using (some themes allow greater control over block placement than others), and on the settings in the block administration section.') . '</p>';
$output .= '<p>' . t('The block administration screen lets you specify the vertical placement of the blocks within a region. You do this by assigning a weight to each block. Lighter blocks (those having a smaller weight) "float up" towards the top of the region; heavier ones "sink".') . '</p>';
$output .= t("<p>A block's visibility depends on:</p>\n<ul>\n<li>Its region placement. Blocks with no region assigned to them are never shown.</li>\n<li>Its throttle checkbox when throttle module is enabled. Throttled blocks are hidden during high server loads.</li>\n<li>Its page visibility settings. Blocks can be configured to be visible/hidden on certain pages.</li>\n<li>Its custom visibility settings. Blocks can be configured to be visible only when specific conditions are true.</li>\n<li>Its user visibility settings. Administrators can choose to let users decide whether to show/hide certain blocks.</li>\n<li>Its user-role visibility settings. Administrators can choose to let blocks be visible only for certain user roles.</li>\n<li>Its function. Some dynamic blocks, such as those generated by modules, will be displayed only on certain pages.</li>\n</ul>\n");
$output .= '<h3>' . t('Module blocks') . '</h3>';
$output .= '<p>' . t('Some modules generate blocks that become available when the modules are enabled. These blocks can be administered via the <a href="@admin-block">blocks administration page</a>.</p>', array(
'@admin-block' => url('admin/build/block'),
)) . '</p>';
$output .= '<h3>' . t('Administrator defined blocks') . '</h3>';
$output .= '<p>' . t('Administrators can also define custom blocks. These blocks consist of a title, a description, and a body which can be as long as you wish. Block content can be in any of the input formats supported for other content.') . '</p>';
$output .= '<p>' . t('For more information please read the configuration and customization handbook <a href="@block">Block page</a>.', array(
'@block' => 'http://drupal.org/handbook/modules/block/',
)) . '</p>';
return $output;
case 'admin/build/block':
return t('<p>Blocks are boxes of content that may be rendered into certain regions of your web pages, for example, into sidebars. They are usually generated automatically by modules, but administrators can create blocks manually.</p>
<p>Only enabled blocks are shown. You can position blocks by specifying which area of the page they should appear in (e.g., a sidebar). Highlighted labels on this page show the regions into which blocks can be rendered. You can specify where within a region a block will appear by adjusting its weight.</p>
<p>If you want certain blocks to disable themselves temporarily during high server loads, check the "Throttle" box. You can configure the auto-throttle on the <a href="@throttle">throttle configuration page</a> after having enabled the throttle module.</p>
<p>You can configure the behaviour of each block (for example, specifying on which pages and for what users it will appear) by clicking the "configure" link for each block.</p>', array(
'@throttle' => url('admin/settings/throttle'),
));
case 'admin/build/block/add':
return '<p>' . t('Here you can create a new block. Once you have created this block you must make it active and give it a place on the page using <a href="@overview">blocks</a>. The description is used in the "block" column on the <a href="@overview">blocks</a> page.', array(
'@overview' => url('admin/build/block'),
)) . '</p>';
}
}