Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bootstrap_datetime_picker
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
bootstrap_datetime_picker
Merge requests
!2
Update hook help
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Update hook help
issue/bootstrap_datetime_picker-3337580:update-hook_help
into
2.0.x
Overview
0
Commits
2
Pipelines
0
Changes
1
Open
Himanshu Jhaloya
requested to merge
issue/bootstrap_datetime_picker-3337580:update-hook_help
into
2.0.x
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
2.0.x
2.0.x (HEAD)
and
latest version
latest version
122cad15
2 commits,
2 years ago
1 file
+
39
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
bootstrap_datetime_picker.module
+
39
−
0
Options
@@ -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