function drupal_exit

cis7 drupal_exit($destination = NULL)
cle7 drupal_exit($destination = NULL)
elmsmedia7 drupal_exit($destination = NULL)
icor7 drupal_exit($destination = NULL)
meedjum_blog7 drupal_exit($destination = NULL)
mooc7 drupal_exit($destination = NULL)

Performs end-of-request tasks.

In some cases page requests need to end without calling drupal_page_footer(). In these cases, call drupal_exit() instead. There should rarely be a reason to call exit instead of drupal_exit();


$destination: If this function is called from drupal_goto(), then this argument will be a fully-qualified URL that is the destination of the redirect. This should be passed along to hook_exit() implementations.

34 calls to drupal_exit()
accessibility_wysiwyg_tinymce_view_errors in sites/all/modules/ulmus/accessibility/modules/accessibility_wysiwyg/accessibility_wysiwyg.module
Menu callback to render out accessibility errors.
ajax_get_form in includes/
Gets a form submitted via #ajax during an Ajax callback.
contact_personal_form in modules/contact/
Form constructor for the personal contact form.
contact_site_form in modules/contact/
Form constructor for the site-wide contact form.
context_reaction_block::render_ajax in sites/all/modules/ulmus/context/plugins/
Block renderer for AJAX requests. Triggered when $_GET['context_block'] is set. See ->execute() for how this is called.

... See full list


includes/, line 2721
Common functions that many Drupal modules will need to reference.


function drupal_exit($destination = NULL) {
  if (drupal_get_bootstrap_phase() == DRUPAL_BOOTSTRAP_FULL) {
    if (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update') {
      module_invoke_all('exit', $destination);



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.