function hook_exit

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 system.api.php hook_exit($destination = NULL)
cle7 system.api.php hook_exit($destination = NULL)
elmsmedia7 system.api.php hook_exit($destination = NULL)
icor7 system.api.php hook_exit($destination = NULL)
meedjum_blog7 system.api.php hook_exit($destination = NULL)
mooc7 system.api.php hook_exit($destination = NULL)

Perform cleanup tasks.

This hook is run at the end of most regular page requests. It is often used for page logging and specialized cleanup. This hook MUST NOT print anything because by the time it runs the response is already sent to the browser.

Only use this hook if your code must run even for cached page views. If you have code which must run once on all non-cached pages, use hook_init() instead. That is the usual case. If you implement this hook and see an error like 'Call to undefined function', it is likely that you are depending on the presence of a module which has not been loaded yet. It is not loaded because Drupal is still in bootstrap mode.

Parameters

$destination: If this hook is invoked as part of a drupal_goto() call, then this argument will be a fully-qualified URL that is the destination of the redirect.

Related topics

1 string reference to 'hook_exit'
system_test_exit in modules/simpletest/tests/system_test.module
Implements hook_exit().
11 functions implement hook_exit()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

boost_exit in sites/all/modules/ulmus/boost/boost.module
Implements hook_exit().
drupal_exit in includes/common.inc
Performs end-of-request tasks.
entity_iframe_statistics_exit in sites/all/modules/elmsln_contrib/entity_iframe/modules/entity_iframe_statistics/entity_iframe_statistics.module
Implements hook_exit().
feeds_exit in sites/all/modules/ulmus/feeds/feeds.module
Implements hook_exit().
httprl_call_exit in sites/all/modules/ulmus/httprl/httprl.module
Performs end-of-request tasks and/or call exit directly.

... See full list

7 invocations of hook_exit()
ajax_footer in includes/ajax.inc
Performs end-of-Ajax-request tasks.
backup_file::transfer in sites/all/modules/ulmus/backup_migrate/includes/files.inc
Transfer file using http to client. Similar to the built in file_transfer, but it calls module_invoke_all('exit') so that temp files can be deleted.
bakery_eat_gingerbread_cookie in sites/all/modules/ulmus/bakery/bakery.module
Respond with account information.
bakery_eat_stroopwafel_cookie in sites/all/modules/ulmus/bakery/bakery.module
Menu callback, invoked on the slave
drupal_exit in includes/common.inc
Performs end-of-request tasks.

... See full list

File

modules/system/system.api.php, line 728
Hooks provided by Drupal core and the System module.

Code

function hook_exit($destination = NULL) {
  db_update('counter')->expression('hits', 'hits + 1')->condition('type', 1)->execute();
}