Commit 22cce8af authored by catch's avatar catch

Issue #1618072 by Niklas Fiekas: Remove ajax_footer().

parent dfbc9682
...@@ -552,29 +552,6 @@ function ajax_prepare_response($page_callback_result) { ...@@ -552,29 +552,6 @@ function ajax_prepare_response($page_callback_result) {
return $commands; return $commands;
} }
/**
* Performs end-of-Ajax-request tasks.
*
* This function is the equivalent of drupal_page_footer(), but for Ajax
* requests.
*
* @see drupal_page_footer()
*/
function ajax_footer() {
// Even for Ajax requests, invoke hook_exit() implementations. There may be
// modules that need very fast Ajax responses, and therefore, run Ajax
// requests with an early bootstrap.
if (drupal_get_bootstrap_phase() == DRUPAL_BOOTSTRAP_FULL && (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update')) {
module_invoke_all('exit');
}
// Commit the user session. See above comment about the possibility of this
// function running without session.inc loaded.
if (function_exists('drupal_session_commit')) {
drupal_session_commit();
}
}
/** /**
* Form element processing handler for the #ajax form property. * Form element processing handler for the #ajax form property.
* *
......
...@@ -21,7 +21,8 @@ class RequestCloseSubscriber implements EventSubscriberInterface { ...@@ -21,7 +21,8 @@ class RequestCloseSubscriber implements EventSubscriberInterface {
* *
* @todo The body of this function has just been copied almost verbatim from * @todo The body of this function has just been copied almost verbatim from
* drupal_page_footer(). There's probably a lot in here that needs to get * drupal_page_footer(). There's probably a lot in here that needs to get
* removed/changed. * removed/changed. Also, if possible, do more light-weight shutdowns on
* AJAX requests.
* *
* @param Symfony\Component\HttpKernel\Event\PostResponseEvent $event * @param Symfony\Component\HttpKernel\Event\PostResponseEvent $event
* The Event to process. * The Event to process.
......
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