Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
open_readspeaker
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
open_readspeaker
Merge requests
!19
hook help Implemented
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
hook help Implemented
issue/open_readspeaker-3347767:3347767-implement-hookhelp
into
2.x
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Dinesh Kumar Bollu
requested to merge
issue/open_readspeaker-3347767:3347767-implement-hookhelp
into
2.x
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
Closes
#3347767
0
0
Merge request reports
Compare
2.x
version 2
7641f184
2 years ago
version 1
5bfca630
2 years ago
2.x (base)
and
latest version
latest version
7641f184
2 commits,
2 years ago
version 2
7641f184
2 commits,
2 years ago
version 1
5bfca630
1 commit,
2 years ago
1 file
+
21
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
open_readspeaker.module
+
21
−
0
Options
@@ -6,6 +6,27 @@
*/
use
Drupal\Core\Render\BubbleableMetadata
;
use
Drupal\Core\Routing\RouteMatchInterface
;
/**
* Implements hook_help().
*/
function
open_readspeaker_help
(
$route_name
,
RouteMatchInterface
$route_match
)
{
if
(
$route_name
===
'help.page.open_readspeaker'
)
{
$output
=
'<h2>'
.
t
(
'Open ReadSpeaker'
)
.
'</h2>'
;
$output
.
=
'<p>'
.
t
(
'Open ReadSpeaker is an adaptation from the official module that ReadSpeaker provide.'
)
.
'</p>'
;
$output
.
=
'<h3>'
.
t
(
'Features'
)
.
'</h3>'
;
$output
.
=
'<ul><li>'
.
t
(
'Block Config.'
)
.
'</li>'
;
$output
.
=
'<li>'
.
t
(
'Best Admin UX.'
)
.
'</li>'
;
$output
.
=
'<li>'
.
t
(
'You need HTML skills to change the layout.'
)
.
'</li>'
;
$output
.
=
'<li>'
.
t
(
'Supports Enterprise Highlighting & webReader product by ReadSpeaker.'
)
.
'</li>'
.
'</ul>'
;
$output
.
=
'<h3>'
.
t
(
'Related modules'
)
.
'</h3>'
;
$output
.
=
'<p>'
.
t
(
'<a href="https://www.drupal.org/project/webreader">webreader</a>(obsolete)
Use the hook_node_view to render the button. This mean only show up in node pages.
If you use a panel or custom views page this module do not provide any solution to show up the button.'
)
.
'</p>'
;
return
$output
;
}
}
/**
* Implements hook_theme().
Loading