function devel_boot in Devel 7
Same name and namespace in other branches
- 6 devel.module \devel_boot()
Implements hook_boot().
Runs even for cached pages.
File
- ./
devel.module, line 662 - This module holds functions useful for Drupal development.
Code
function devel_boot() {
if (!devel_silent()) {
if (variable_get('devel_memory', 0)) {
global $memory_init;
$memory_init = memory_get_usage();
}
if (devel_query_enabled()) {
@(include_once DRUPAL_ROOT . '/includes/database/log.inc');
Database::startLog('devel');
}
}
// We need user_access() in the shutdown function. make sure it gets loaded.
// Also prime the drupal_get_filename() static with user.module's location to
// avoid a stray query.
drupal_get_filename('module', 'user', 'modules/user/user.module');
drupal_load('module', 'user');
drupal_register_shutdown_function('devel_shutdown');
}