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

8.0.x
catch 2012-06-08 21:17:34 +09:00
parent dfbc9682a3
commit 22cce8af98
2 changed files with 2 additions and 24 deletions

View File

@ -552,29 +552,6 @@ function ajax_prepare_response($page_callback_result) {
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.
*

View File

@ -21,7 +21,8 @@ class RequestCloseSubscriber implements EventSubscriberInterface {
*
* @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
* removed/changed.
* removed/changed. Also, if possible, do more light-weight shutdowns on
* AJAX requests.
*
* @param Symfony\Component\HttpKernel\Event\PostResponseEvent $event
* The Event to process.