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
simple_sitemap
Commits
2dcacab1
Commit
2dcacab1
authored
Feb 25, 2017
by
Pawel G
Browse files
Issue
#2784079
by liam-morland: Support RobotsTxt module
parent
d112db59
Changes
1
Show whitespace changes
Inline
Side-by-side
simple_sitemap.module
View file @
2dcacab1
...
@@ -175,3 +175,13 @@ function simple_sitemap_delete_bundle_config($entity_type_id, $bundle) {
...
@@ -175,3 +175,13 @@ function simple_sitemap_delete_bundle_config($entity_type_id, $bundle) {
drupal_set_message
(
t
(
$message
,
[
'@url'
=>
$GLOBALS
[
'base_url'
]
.
'/admin/config/search/simplesitemap'
]));
drupal_set_message
(
t
(
$message
,
[
'@url'
=>
$GLOBALS
[
'base_url'
]
.
'/admin/config/search/simplesitemap'
]));
}
}
}
}
/**
* Implements hook_robotstxt().
*/
function
simple_sitemap_robotstxt
()
{
return
[
'# XML sitemap'
,
'Sitemap: '
.
$GLOBALS
[
'base_url'
]
.
'/sitemap.xml'
,
];
}
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