function httprl_drupal_full_bootstrap in HTTP Parallel Request & Threading Library 6
Same name and namespace in other branches
- 7 httprl.module \httprl_drupal_full_bootstrap()
Sees if Drupal has been fully booted.
Return value
Bool TRUE if DRUPAL_BOOTSTRAP_FULL. FALSE if not DRUPAL_BOOTSTRAP_FULL.
6 calls to httprl_drupal_full_bootstrap()
- httprl_drupal_get_private_key in ./
httprl.module - Gets the private key variable.
- httprl_is_background_callback_capable in ./
httprl.module - Sees if httprl can run a background callback.
- httprl_post_processing in ./
httprl.module - Run post processing on the request if we are done reading.
- httprl_request in ./
httprl.module - Queue up a HTTP request in httprl_send_request.
- httprl_send_request in ./
httprl.module - Perform many HTTP requests.
File
- ./
httprl.module, line 3282 - HTTP Parallel Request Library module.
Code
function httprl_drupal_full_bootstrap() {
static $full_bootstrap;
if (!isset($full_bootstrap)) {
// See if a full bootstrap has been done given the Drupal version.
if (defined('VERSION') && substr(VERSION, 0, 1) >= 7) {
$level = drupal_bootstrap();
$full_bootstrap = $level == DRUPAL_BOOTSTRAP_FULL ? TRUE : FALSE;
}
else {
$full_bootstrap = isset($GLOBALS['multibyte']) ? TRUE : FALSE;
}
}
return $full_bootstrap;
}