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()) {
}
$link += array('query' => $destination);
drupal_alter('xmlsitemap_operation_link', $link);
return $link;
}
......@@ -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);
......
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