Skip to content
Snippets Groups Projects

Issue #3337580: Implement hook_help()

1 file
+ 27
0
Compare changes
  • Side-by-side
  • Inline
@@ -4,3 +4,30 @@
* @file
* Empty module file.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function bootstrap_datetime_picker_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.bootstrap_datetime_picker':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module provides Bootstrap DateTime picker using library <a href=":library">https://github.com/Eonasdan/bootstrap-datetimepicker</a>.',
[
':library' => 'https://github.com/Eonasdan/bootstrap-datetimepicker',
]
) . '</p>';
// Add a link to the Drupal.org project.
$output .= '<p>';
$output .= t('Visit the <a href=":project_link">Bootstrap Datetime Picker project page</a> on Drupal.org for more information.',
[
':project_link' => 'https://www.drupal.org/project/bootstrap_datetime_picker',
]
);
$output .= '</p>';
return $output;
}
}
\ No newline at end of file
Loading