Skip to content
Snippets Groups Projects
Commit 8f7e109b authored by jay jangid's avatar jay jangid Committed by jay jangid
Browse files

Issue #3334393: hook_help function missing in .module file

parent 01940f41
No related branches found
No related tags found
1 merge request!3Issue #3334393: hook_help function missing in .module file
......@@ -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().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment