Commit d602b021 authored by Dave Reid's avatar Dave Reid

Make xmlsitemap_modal kinda work.

parent b6ee6a3a
...@@ -1547,5 +1547,6 @@ function xmlsitemap_get_operation_link($url, $options = array()) { ...@@ -1547,5 +1547,6 @@ function xmlsitemap_get_operation_link($url, $options = array()) {
} }
$link += array('query' => $destination); $link += array('query' => $destination);
drupal_alter('xmlsitemap_operation_link', $link);
return $link; return $link;
} }
...@@ -27,7 +27,7 @@ function xmlsitemap_modal_get_form() { ...@@ -27,7 +27,7 @@ function xmlsitemap_modal_get_form() {
$form_state = array( $form_state = array(
'ajax' => TRUE, 'ajax' => TRUE,
'args' => $args, 'build_info' => array('args' => $args),
); );
$commands = ctools_modal_form_wrapper($form_id, $form_state); $commands = ctools_modal_form_wrapper($form_id, $form_state);
...@@ -37,8 +37,8 @@ function xmlsitemap_modal_get_form() { ...@@ -37,8 +37,8 @@ function xmlsitemap_modal_get_form() {
$commands[] = ctools_ajax_command_redirect($_GET['destination']); $commands[] = ctools_ajax_command_redirect($_GET['destination']);
} }
} }
return ajax_render($commands); print ajax_render($commands);
//return ctools_ajax_render($commands); exit;
} }
else { else {
array_unshift($args, $form_id); array_unshift($args, $form_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment