[drupal-devel] [feature] Trigger debug mode on-the-fly
moshe weitzman
drupal-devel at drupal.org
Sat May 7 13:41:44 UTC 2005
Issue status update for http://drupal.org/node/21379
Project: Drupal
Version: cvs
Component: other
Category: feature requests
Priority: normal
Assigned to: Anonymous
Reported by: mathias
Updated by: moshe weitzman
Status: patch
thats a good idea, although some implementations might want only certain
users (i.e. permission check) to be able to override via _GET param. I
suppose that could be handled in the calling code.
moshe weitzman
Previous comments:
------------------------------------------------------------------------
April 26, 2005 - 15:05 : mathias
Attachment: http://drupal.org/files/issues/devel_GET_params_core.patch (2.38 KB)
This patch allows admins who are using devel.module to optionally toggle
the page timer, query logger and page redirection for each request using
GET parameters rather than navigating to admin/settings/devel and
flipping the global settings back and forth. I added this since I
usually don't need to print out this information for every page. Now I
just use:
http://example.com/index.php?q=node&dev_query=1
for the request I'm interested in. Two other params can also be
toggled: dev_timer and dev_redirect.
------------------------------------------------------------------------
April 26, 2005 - 17:15 : mathias
Attachment: http://drupal.org/files/issues/devel_GET_params_module.patch (2.82 KB)
And the patch for devel.module
------------------------------------------------------------------------
May 6, 2005 - 23:09 : Steven
Perhaps we should move the trinary operator and variable_get into a
small function: it would be cleaner in the code.
------------------------------------------------------------------------
May 6, 2005 - 23:10 : Steven
In fact, why not create a copy of variable_get which gets its value from
the database, but overrides it with a get parameter if it exists? That
would be the cleanest, it can be used in devel.module as well as
elsewhere...
More information about the drupal-devel
mailing list