ajax_footer
function ajax_footer
ajax_footer()
Performs end-of-Ajax-request tasks.
This function is the equivalent of drupal_page_footer(), but for Ajax requests.
See also
Related topics
File
- includes/ajax.inc, line 617
- Functions for use with Drupal's Ajax framework.
Code
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(); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!ajax.inc/function/ajax_footer/7.x