diff --git a/waypoints.module b/waypoints.module index 53852257a0dc5e0440fea64c94355454b44635ec..88ef49f4036efafa33b35babd4e125ec551096b3 100644 --- a/waypoints.module +++ b/waypoints.module @@ -4,7 +4,26 @@ * @file * Main file for Waypoints module. */ +use Drupal\Core\Routing\RouteMatchInterface; +/** + * Implements hook_help(). + */ +function waypoints_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the waypoints module. + case 'help.page.waypoints': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('Waypoints is a small jQuery plugin that makes it easy to execute a function + whenever you scroll to an element. + Waypoints makes a solid base for modern UI patterns that depend on a user’s + scroll position on the page') . '</p>'; + return $output; + + default: + } +} /** * Implements hook_page_attachments(). */