summaryrefslogtreecommitdiff
path: root/modules/system.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-23 21:47:02 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-23 21:47:02 +0000
commit8c8b305892f3bc66b062a4fd6b46ec37278f0769 (patch)
treeaa7e79aeee29a82e260dfc144ff4d12e0e232110 /modules/system.module
parent2ac4e99feb1c71004a8d3d37ac848e6c8cd65e2d (diff)
downloadbrdo-8c8b305892f3bc66b062a4fd6b46ec37278f0769.tar.gz
brdo-8c8b305892f3bc66b062a4fd6b46ec37278f0769.tar.bz2
- Added "query log" functionality to Drupal. Inspired by weitzman's
code/patch.
Diffstat (limited to 'modules/system.module')
-rw-r--r--modules/system.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/system.module b/modules/system.module
index d9d5c633c..f84c204f8 100644
--- a/modules/system.module
+++ b/modules/system.module
@@ -72,6 +72,8 @@ function system_view_options() {
// development settings:
$output .= "<h3>Development settings</h3>\n";
$output .= form_select("Display timer information", "dev_timer", variable_get("dev_timer", 0), array("Disabled", "Enabled"), "Display the time it took to generate a page. For Drupal development only.");
+ $output .= form_select("Display query log", "dev_query", variable_get("dev_query", 0), array("Disabled", "Enabled"), "Display a log of the database queries needed to generate the current page.");
+
$output .= "<hr />\n";
foreach (module_list() as $name) {