You are here

function devel_query_enabled in Devel 7

Returns whether query logging is enabled.

Return value

boolean TRUE if the query log is enabled, FALSE otherwise.

2 calls to devel_query_enabled()
devel_boot in ./devel.module
Implements hook_boot().
devel_shutdown_real in ./devel.module
Runs on shutdown to display developer information in the footer.

File

./devel.module, line 1307
This module holds functions useful for Drupal development.

Code

function devel_query_enabled() {
  return method_exists('Database', 'getLog') && variable_get('devel_query_display', FALSE);
}