-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsingle_datetime.module
28 lines (25 loc) · 1.17 KB
/
single_datetime.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* @file
* Main module file single_datetime.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function single_datetime_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.single_datetime':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Date time picker form element for date and date range fields using the xdan jQuery Plugin Date and Time Picker library');
$output .= '<h3>' . t('Install jQuery Plugin Date and Time Picker library') . '</h3>';
$output .= '<p>' . t('It is possible to place library manual or with composer.') . '</p>';
$output .= '<p>' . t('See <a href=":readme">Readme.txt</a> inside this module or go to project page for detailed instructions',
[':readme' => 'https://cgit.drupalcode.org/single_datetime/tree/README.txt']) . '</p>';
$output .= '<h3>' . t('External resources') . '</h3>';
$output .= '<p><a href="https://xdsoft.net/jqplugins/datetimepicker/">DateTimePicker</a></p>';
$output .= '<p><a href="https://github.com/xdan/datetimepicker">Github</a></p>';
return $output;
}
}