Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
X
xmlsitemap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
xmlsitemap
Commits
1c5982e6
Commit
1c5982e6
authored
Jun 25, 2014
by
andrei.dincu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2249723
by andrei.dincu: invokeAll() takes second parameter as array in xmlsitemap.module
parent
97800916
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
xmlsitemap.module
xmlsitemap.module
+5
-6
No files found.
xmlsitemap.module
View file @
1c5982e6
...
...
@@ -395,7 +395,6 @@ function xmlsitemap_sitemap_load_multiple($smids = array(), array $conditions =
return
array
();
}
foreach
(
$sitemaps
as
&
$sitemap
)
{
$sitemap
->
setContext
(
$sitemap
->
getContext
());
$uri
=
xmlsitemap_sitemap_uri
(
$sitemap
);
$sitemap
->
uri
=
$uri
;
}
...
...
@@ -491,7 +490,7 @@ function xmlsitemap_sitemap_delete_multiple(array $smids) {
foreach
(
$sitemaps
as
$sitemap
)
{
xmlsitemap_clear_directory
(
$sitemap
,
TRUE
);
$sitemap
->
delete
();
\
Drupal
::
moduleHandler
()
->
invokeAll
(
'xmlsitemap_sitemap_delete'
,
$sitemap
);
\
Drupal
::
moduleHandler
()
->
invokeAll
(
'xmlsitemap_sitemap_delete'
,
array
(
$sitemap
)
);
}
}
}
...
...
@@ -539,8 +538,8 @@ function xmlsitemap_sitemap_get_context_hash(array &$context) {
*/
function
xmlsitemap_sitemap_uri
(
XmlSitemapInterface
$sitemap
)
{
$uri
[
'path'
]
=
'sitemap.xml'
;
$uri
[
'options'
]
=
\
Drupal
::
moduleHandler
()
->
invokeAll
(
'xmlsitemap_context_url_options'
,
$sitemap
->
getContext
(
));
$context
=
$sitemap
->
getContext
()
;
$uri
[
'options'
]
=
\
Drupal
::
moduleHandler
()
->
invokeAll
(
'xmlsitemap_context_url_options'
,
array
(
$sitemap
->
context
));
$context
=
$sitemap
->
context
;
\
Drupal
::
moduleHandler
()
->
alter
(
'xmlsitemap_context_url_options'
,
$uri
[
'options'
],
$context
);
$uri
[
'options'
]
+=
array
(
'absolute'
=>
TRUE
,
...
...
@@ -628,11 +627,11 @@ function xmlsitemap_link_save(array $link) {
// Save the link and allow other modules to respond to the link being saved.
if
(
$existing
)
{
drupal_write_record
(
'xmlsitemap'
,
$link
,
array
(
'type'
,
'id'
));
\
Drupal
::
moduleHandler
()
->
invokeAll
(
'xmlsitemap_link_update'
,
$link
);
\
Drupal
::
moduleHandler
()
->
invokeAll
(
'xmlsitemap_link_update'
,
array
(
$link
)
);
}
else
{
$result
=
drupal_write_record
(
'xmlsitemap'
,
$link
);
\
Drupal
::
moduleHandler
()
->
invokeAll
(
'xmlsitemap_link_insert'
,
$link
);
\
Drupal
::
moduleHandler
()
->
invokeAll
(
'xmlsitemap_link_insert'
,
array
(
$link
)
);
}
return
$link
;
...
...
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