[drupal-devel] [feature] Trigger debug mode on-the-fly

Steven drupal-devel at drupal.org
Sat May 7 04:10:58 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:   Steven
 Status:       patch

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...




Steven



Previous comments:
------------------------------------------------------------------------

April 26, 2005 - 22: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 27, 2005 - 00:15 : mathias

Attachment: http://drupal.org/files/issues/devel_GET_params_module.patch (2.82 KB)

And the patch for devel.module




------------------------------------------------------------------------

May 7, 2005 - 06:09 : Steven

Perhaps we should move the trinary operator and variable_get into a
small function: it would be cleaner in the code.







More information about the drupal-devel mailing list