diff --git a/core/modules/tour/tour.module b/core/modules/tour/tour.module index 4e410c0..c1a7682 100644 --- a/core/modules/tour/tour.module +++ b/core/modules/tour/tour.module @@ -7,6 +7,26 @@ use Drupal\Core\Cache\CacheBackendInterface; /** + * Implements hook_help(). + */ +function tour_help($path, $arg) { + switch ($path) { + case 'admin/help#tour': + $output = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t("The Tour module provides users with a context-sensitive overview of user interfaces throughout the site. For more information, see the online documentation for the Tour module.", array('!tour' => 'https://drupal.org/documentation/modules/tour')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Viewing tours') . '
'; + $output .= '
' . t("When a tour is available on a page, a Tour button will be visible in the toolbar. Clicking the Tour button will guide the user through the key elements of that page's user interface. A tour may also recommend related tours on the site to the user, which can be taken in sequence to provide a walkthrough of the site in a structured manner.") . '
'; + $output .= '
' . t('Creating tours') . '
'; + $output .= '
' . t("Tours can be used to highlight critical components of the user interface to the user, guide the user through a workflow, or explain key Drupal concepts. Tours can be written as YAML-documents with a text editor, or using contributed modules. For more information, see the online documentation for writing tours.", array('!doc_url' => 'https://drupal.org/developing/api/tour')) . '
'; + $output .= '
'; + return $output; + } +} + +/** * Implements hook_permission(). */ function tour_permission() {