Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
marketing_cloud
Commits
c4c7ddfc
Commit
c4c7ddfc
authored
May 24, 2018
by
john_a
Committed by
john_a
May 24, 2018
Browse files
Issue
#2974889
by john_a: add a Drupal message to marketing_cloud_example hook help()
parent
d30844e8
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/marketing_cloud_example/marketing_cloud_example.module
View file @
c4c7ddfc
<?php
<?php
/**
/**
* @file
* @file
* Adds example sub-module for demonstrating how to use Marketing Cloud.
* Adds example sub-module for demonstrating how to use Marketing Cloud.
...
@@ -15,6 +16,8 @@ function marketing_cloud_example_help($route_name, RouteMatchInterface $route_ma
...
@@ -15,6 +16,8 @@ function marketing_cloud_example_help($route_name, RouteMatchInterface $route_ma
$text
=
file_get_contents
(
dirname
(
__FILE__
)
.
'/README.md'
);
$text
=
file_get_contents
(
dirname
(
__FILE__
)
.
'/README.md'
);
if
(
!
\
Drupal
::
moduleHandler
()
->
moduleExists
(
'markdown'
))
{
if
(
!
\
Drupal
::
moduleHandler
()
->
moduleExists
(
'markdown'
))
{
drupal_set_message
(
'To view this page correctly, please install and
enable the markdown module.'
);
return
'<pre>'
.
$text
.
'</pre>'
;
return
'<pre>'
.
$text
.
'</pre>'
;
}
}
else
{
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment