From 8ad93870b79754ac0c94b6975797492e12717f01 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Tue, 14 Apr 2015 09:33:11 +0200 Subject: [PATCH] Issue #2349907 by jhodgdon, susanb: Review and fix block hook_help text --- core/modules/block/block.module | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/modules/block/block.module b/core/modules/block/block.module index 74a811bb64..9d5f40631c 100644 --- a/core/modules/block/block.module +++ b/core/modules/block/block.module @@ -19,23 +19,24 @@ function block_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.block': + $block_content = \Drupal::moduleHandler()->moduleExists('block_content') ? \Drupal::url('help.page', array('name' => 'block_content')) : '#'; $output = ''; $output .= '

' . t('About') . '

'; - $output .= '

' . t('The Block module allows you to place blocks in regions and to configure their settings. For more information, see the online documentation for the Blocks module.', array('!blocks-documentation' => 'https://drupal.org/documentation/modules/block/')) . '

'; + $output .= '

' . t('The Block module allows you to place blocks in regions of your installed themes, and configure block settings. For more information, see the online documentation for the Block module.', array('!blocks-documentation' => 'https://www.drupal.org/documentation/modules/block/')) . '

'; $output .= '

' . t('Uses') . '

'; $output .= '
'; $output .= '
' . t('Placing and moving blocks') . '
'; - $output .= '
' . t('You can place a block by clicking on its title in the Place blocks list on the Block layout page. You can then choose the appropriate region from the Region dropdown menu. Once a block has been placed, it can also be moved to a different region by choosing a region from the Region dropdown menu on the Block layout page, or by dragging and dropping it to the right position.', array('!blocks' => \Drupal::url('block.admin_display'))) . '
'; - $output .= '
' . t('Demonstrating block regions for a theme') . '
'; - $output .= '
' . t('You can see which region is where in a theme by clicking on the Demonstrate block regions link on the Block layout page. Regions are specific to each theme, so you need to toggle to a different theme first to demonstrate its block regions.', array('!blocks' => \Drupal::url('block.admin_display'))) . '
'; + $output .= '
' . t('You can place a new block by clicking on its title in the Place blocks list on the Block layout page and choosing a region to place it in. Once a block is placed, it can be moved to a different region by dragging or using the drop-down Region list, and then clicking Save blocks.', array('!blocks' => \Drupal::url('block.admin_display'))) . '
'; $output .= '
' . t('Toggling between different themes') . '
'; $output .= '
' . t('Blocks are placed and configured specifically for each theme. The Block layout page opens with the default theme, but you can toggle to other installed themes.') . '
'; + $output .= '
' . t('Demonstrating block regions for a theme') . '
'; + $output .= '
' . t('You can see where the regions are for the current theme by clicking the Demonstrate block regions link on the Block layout page. Regions are specific to each theme.', array('!blocks' => \Drupal::url('block.admin_display'))) . '
'; $output .= '
' . t('Configuring block settings') . '
'; $output .= '
' . t('To change the settings of an individual block click on the Configure link on the Block layout page. The available options vary depending on the module that provides the block. For all blocks you can change the block title and toggle whether to display it.', array('!blocks' => Drupal::url('block.admin_display'))) . '
'; $output .= '
' . t('Controlling visibility') . '
'; $output .= '
' . t('You can control the visibility of a block by restricting it to specific pages, content types, and/or roles by setting the appropriate options under Visibility settings of the block configuration.') . '
'; $output .= '
' . t('Adding custom blocks') . '
'; - $output .= '
' . t('You can add custom blocks, if the Custom Block module is installed on the Extend page. For more information, see the Custom Block help page.', array('!extend' => \Drupal::url('system.modules_list'), '!blockcontent-help' => \Drupal::url('help.page', array('name' => 'block_content')))) . '
'; + $output .= '
' . t('You can add custom blocks, if the Custom Block module is installed. For more information, see the Custom Block help page.', array('!blockcontent-help' => $block_content)) . '
'; $output .= '
'; return $output; } -- GitLab