summaryrefslogtreecommitdiff
path: root/modules/development.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-01-26 13:22:02 +0000
committerDries Buytaert <dries@buytaert.net>2003-01-26 13:22:02 +0000
commit4028362fda6f9423d95e53267fbd7ba99e96c106 (patch)
tree678e613f4731b112d314cbc6d61cb03f0d094634 /modules/development.module
parentad9b03033a2bfcbb4cb0b7d64698d6b12a57e13f (diff)
downloadbrdo-4028362fda6f9423d95e53267fbd7ba99e96c106.tar.gz
brdo-4028362fda6f9423d95e53267fbd7ba99e96c106.tar.bz2
- Applied Moshe's _exit patch (slightly modified).
- Fixed bug in system.module.
Diffstat (limited to 'modules/development.module')
-rw-r--r--modules/development.module22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/development.module b/modules/development.module
new file mode 100644
index 000000000..c93b9e9ce
--- /dev/null
+++ b/modules/development.module
@@ -0,0 +1,22 @@
+<?php
+
+// This module is holds functions useful for Drupal development.
+// Please contribute!
+
+function development_exit() {
+ if (variable_get("dev_query", 0)) {
+ query_print();
+ }
+}
+
+function development_system($field) {
+ $system["description"] = t("Enables features and functions to help Drupal development.");
+ return $system[$field];
+}
+
+function development_conf_options() {
+ $output = form_select(t("Display query log"), "dev_query", variable_get("dev_query", 0), array(t("Disabled"), t("Enabled")), t("Display a log of the database queries needed to generate the current page, and the execution time for each."));
+ return $output;
+}
+
+?>