Posted by daneyuleb on May 20, 2009 at 10:20pm
Jump to:
| Project: | Drupal For Firebug |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (works as designed) |
Issue Summary
Hi,
This is a really useful module--love the ability to get my Form vars quickly. But...
I want to do some "print_r"s in the Execute PHP section, but it seems it's not in the same namespace/scope as the node vars...
In other words, shouldn't "print_r($content)" work on a page that is parsing the content var? Or print_r($variables)?
Tried "global $content" in both the execute php window and in the tpl.php for the node...but no luck..just get no data.
Am I just being clueless here? How can I get those vars to show up?
Thanks!
-Daniel
Comments
#1
the php functionality only lets you run php on the server, it doesn't interact with the runtime operations of the theme or modules. if you want to do that, use the firep() function and insert it at the appropriate place.
if you want to see the $content variable, jump into the template.php file and print it out where appropriate.