function devel_silent

Checks whether Devel may be active.

Return value

boolean

5 calls to devel_silent()
devel_boot in ./devel.module
Implements hook_boot().
devel_drupal_goto_alter in ./devel.module
Implements hook_drupal_goto_alter().
devel_init in ./devel.module
Implements hook_init().
devel_library_alter in ./devel.module
Implements hook_library_alter().
devel_shutdown_real in ./devel.module
Runs on shutdown to display developer information in the footer.

File

./devel.module, line 640

Code

function devel_silent() {
    // isset($_GET['q']) is needed when calling the front page. q is not set.
    // Don't interfere with private files/images.
    return function_exists('drupal_is_cli') && drupal_is_cli() || isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'ApacheBench') !== FALSE || !empty($_REQUEST['XDEBUG_PROFILE']) || isset($GLOBALS['devel_shutdown']) || strstr($_SERVER['PHP_SELF'], 'update.php') || isset($_GET['q']) && (in_array($_GET['q'], array(
        'admin/content/node-settings/rebuild',
    )) || substr($_GET['q'], 0, strlen('system/files')) == 'system/files' || substr($_GET['q'], 0, strlen('batch')) == 'batch' || substr($_GET['q'], 0, strlen('file/ajax')) == 'file/ajax');
}