diff --git a/core/modules/tour/tour.module b/core/modules/tour/tour.module index 8bd9ec1..3578aed 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 guided tours of the site interface. Each tour consists of several tips that highlight elements of the user interface, guide the user through a workflow, or explain key concepts of the website. 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("If a tour is available on a page, a Tour button will be visible in the toolbar. If you click this button the first tip of the tour will appear. The tour continues after clicking the Next button in the tip. To see a tour users must have the permission Access tour and JavaScript must be enabled in the browser") . '
'; + $output .= '
' . t('Creating tours') . '
'; + $output .= '
' . t("Tours can be written as YAML-documents with a text editor, or using the contributed Tour UI module. For more information, see the online documentation for writing tours.", array('!doc_url' => 'https://drupal.org/developing/api/tour', '!tour_ui' => 'https://drupal.org/project/tour_ui')) . '
'; + $output .= '
'; + return $output; + } +} + +/** * Implements hook_permission(). */ function tour_permission() {