Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
phone_number
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
7
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
phone_number
Merge requests
!5
Issue
#3339126
: hook_help function missing in .module file
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3339126
: hook_help function missing in .module file
issue/phone_number-3339126:8.x-1.x
into
8.x-1.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Kamlesh Kishor Jha
requested to merge
issue/phone_number-3339126:8.x-1.x
into
8.x-1.x
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
8.x-1.x
8.x-1.x (HEAD)
and
latest version
latest version
ef98ed6e
1 commit,
1 year ago
1 file
+
21
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
phone_number.module
+
21
−
0
Options
@@ -5,6 +5,27 @@
* phone_number.module
*/
use
Drupal\Core\Routing\RouteMatchInterface
;
/**
* Implements hook_help().
*/
function
phone_number_help
(
$route_name
,
RouteMatchInterface
$route_match
)
{
switch
(
$route_name
)
{
// Main module help for the phone_number module.
case
'help.page.phone_number'
:
$output
=
''
;
$output
.
=
'<h3>'
.
t
(
'About'
)
.
'</h3>'
;
$output
.
=
'<p>'
.
t
(
'Phone Number is a field type that provides flexible validation and intelligent
storage of international telephone numbers through an intuitive UI. Users need
not enter their country-code - there'
s
a
nice
little
country
-
selector
for
that
.
Telephone
numbers
of
all
types
are
supported
and
type
validation
can
be
configured
per
field
-
instance
.
Phone
Number
fields
also
support
(
optionally
)
collecting
and
storing
extension
along
with
the
main
phone
number
.
') . '
</
p
>
';
return $output;
}
}
/**
* Helper function to get all supported countries for views.
*
Loading