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
xmlsitemap
Commits
1e48bc88
Commit
1e48bc88
authored
May 16, 2016
by
juampynr
Browse files
Remove _xmlsitemap_sitemap_rehash_all() as it is not used
parent
49684868
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlsitemap.install
View file @
1e48bc88
...
...
@@ -347,18 +347,3 @@ function xmlsitemap_uninstall() {
function
xmlsitemap_update_last_removed
()
{
return
7203
;
}
function
_xmlsitemap_sitemap_rehash_all
()
{
// Reload the schema cache and reprocess all sitemap hashes into smids.
drupal_get_schema
(
NULL
,
TRUE
);
// Force a rehash of all sitemaps.
$sitemaps
=
xmlsitemap_sitemap_load_multiple
(
FALSE
);
foreach
(
$sitemaps
as
$sitemap
)
{
$context
=
$sitemap
->
context
;
$hash
=
xmlsitemap_sitemap_get_context_hash
(
$context
);
if
(
$hash
!=
$sitemap
->
id
())
{
xmlsitemap_sitemap_save
(
$sitemap
);
}
}
}
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