Posted by Garrett Albright on March 30, 2010 at 10:50pm
3 followers
Jump to:
| Project: | Devel |
| Version: | 7.x-1.x-dev |
| Component: | devel |
| Category: | feature request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
In Drupal 6, the "Execute PHP Code" form, when submitted, shows the result of the executed code, and prints the same form right underneath it, with the previous value filled in. This can be handy when debugging and you want to run the same bit of PHP over and over - just slap that "Execute" button again. However, in D7, the form comes back blank.
I took a quick peek at the code to see if I could fix this myself, but from what I can tell, the D7 version of the code is pretty much the same as the D6 version, and I can't see what magick is making this happen in the D6 version.
Comments
#1
I've no idea what #skip_duplicate_check does, but the exec form uses it and it's gone: #645078: #skip_duplicate_check is obsolete (aka. webchick-warm-up patch).
> just slap that "Execute" button again.
Yup. Been there many times :D
#2
This issue was first mentioned in #608734-6: Make Execute PHP Block Collapsible. Please check out the latest patch in that issue.
Thanks for the pointer to the #skip_duplicate_check issue, I was wondering about that.