Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
darkmode
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
darkmode
Commits
4e0716fd
Commit
4e0716fd
authored
1 year ago
by
Bohdan Melnychuk
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3391068
: Add hook_help for the module
parent
087c9f83
No related branches found
No related tags found
1 merge request
!2
Issue #3391068: Add hook_help for the module
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
darkmode.module
+17
-0
17 additions, 0 deletions
darkmode.module
with
17 additions
and
0 deletions
darkmode.module
+
17
−
0
View file @
4e0716fd
...
...
@@ -8,3 +8,20 @@
* This file is no longer required in Drupal 8.
* @see https://www.drupal.org/node/2217931
*/
/**
* Implements hook_help().
*/
function
darkmode_help
(
$path
,
$arg
)
{
switch
(
$path
)
{
case
'help.page.darkmode'
:
$output
=
''
;
$output
.
=
'<h3>'
.
t
(
'About Darkmode'
)
.
'</h3>'
;
$output
.
=
'<p>'
.
t
(
'The Dark Mode module allows users to enable a dark color scheme for'
)
.
'</p>'
;
$output
.
=
'<p>'
.
t
(
'the website, making it easier on the eyes in low-light environments.'
)
.
'</p>'
;
$output
.
=
'<p>'
.
t
(
'This module provides a convenient toggle button for users to switch between dark and light modes.'
)
.
'</p>'
;
$output
.
=
'<h3>'
.
t
(
'Uses'
)
.
'</h3>'
;
$output
.
=
'<p>'
.
t
(
'To display the dark mode switcher needs to add the Darkmode Switcher block to the desired region in the Block Layout.'
)
.
'</p>'
;
return
$output
;
}
}
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