Skip to content
Snippets Groups Projects

Update hook help

1 file
+ 39
0
Compare changes
  • Side-by-side
  • Inline
@@ -4,3 +4,42 @@
* @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>';
$output = '<p>' . t('Create a Date field in a content type.') . '</p>';
$output = '<p>' . t('Edit the Content type and navigate to "Manage form display.') . '</p>';
$output = '<p>' . t('Under "Widget" select widget for Date/DateTime for "Bootstrap DateTime Picker".') . '</p>';
$output = '<p>' . t('From the settings icon you can define configurations for the "Bootstrap DateTime Picker" widget.') . '</p>';
$output = '<p>' . t('Hours Format - Hours format for the DateTime calendar.') . '</p>';
$output = '<p>' . t('Minutes Granularity - Increments minutes in DateTime calendar when clicking on up/down arrows.') . '</p>';
$output = '<p>' . t('Disable specific days in week - Disable dates of specific days such as Monday, Sunday etc.') . '</p>';
$output = '<p>' . t('Disable specific dates from calendar - If you want to disable specific dates from the calendar.') . '</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;
}
}
Loading