function lightgallery_help in Lightgallery 8
Same name and namespace in other branches
- 7 lightgallery.module \lightgallery_help()
Implements hook_help().
File
- ./
lightgallery.module, line 17 - Light Gallery module file.
Code
function lightgallery_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.lightgallery':
$output = file_get_contents(drupal_get_path('module', 'lightgallery') . '/README.md');
return '<pre>' . $output . '</pre>';
}
}