Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
xmlsitemap
Commits
d602b021
Commit
d602b021
authored
Jan 02, 2015
by
Dave Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make xmlsitemap_modal kinda work.
parent
b6ee6a3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
xmlsitemap.module
xmlsitemap.module
+1
-0
xmlsitemap_modal/xmlsitemap_modal.module
xmlsitemap_modal/xmlsitemap_modal.module
+3
-3
No files found.
xmlsitemap.module
View file @
d602b021
...
...
@@ -1547,5 +1547,6 @@ function xmlsitemap_get_operation_link($url, $options = array()) {
}
$link
+=
array
(
'query'
=>
$destination
);
drupal_alter
(
'xmlsitemap_operation_link'
,
$link
);
return
$link
;
}
xmlsitemap_modal/xmlsitemap_modal.module
View file @
d602b021
...
...
@@ -27,7 +27,7 @@ function xmlsitemap_modal_get_form() {
$form_state
=
array
(
'ajax'
=>
TRUE
,
'args'
=>
$args
,
'build_info'
=>
array
(
'args'
=>
$args
)
,
);
$commands
=
ctools_modal_form_wrapper
(
$form_id
,
$form_state
);
...
...
@@ -37,8 +37,8 @@ function xmlsitemap_modal_get_form() {
$commands
[]
=
ctools_ajax_command_redirect
(
$_GET
[
'destination'
]);
}
}
return
ajax_render
(
$commands
);
//return ctools_ajax_render($commands)
;
print
ajax_render
(
$commands
);
exit
;
}
else
{
array_unshift
(
$args
,
$form_id
);
...
...
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