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
Commits
3b5a0889
Commit
3b5a0889
authored
2 years ago
by
Noorul Shameera
Committed by
Prashant Chauhan
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3337580
by Charchil Khandelwal, noorulshameera, himanshu_jhaloya: Implement hook_help()
parent
dbb93b3e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bootstrap_datetime_picker.info.yml
+2
-0
2 additions, 0 deletions
bootstrap_datetime_picker.info.yml
bootstrap_datetime_picker.module
+27
-4
27 additions, 4 deletions
bootstrap_datetime_picker.module
with
29 additions
and
4 deletions
bootstrap_datetime_picker.info.yml
+
2
−
0
View file @
3b5a0889
...
...
@@ -3,6 +3,8 @@ type: module
description
:
DateTime picker form element using the Bootstrap datetimepicker library.
core_version_requirement
:
^8 || ^9 || ^10
configure
:
bootstrap_datetime_picker.settings
dependencies
:
-
drupal:datetime
This diff is collapsed.
Click to expand it.
bootstrap_datetime_picker.module
+
27
−
4
View file @
3b5a0889
...
...
@@ -2,12 +2,35 @@
/**
* @file
*
Empty m
odule file.
*
M
odule file.
*/
use
Drupal\Core\Datetime\DrupalDateTime
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Url
;
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
;
}
}
/**
* Implements hook_theme().
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment