Devel module and running PHP code
The Devel module (meaning development or developer, but just Devel) has the secret (that is, not well documented) ability to let you run PHP code directly, within the Drupal system, without first creating a node or a page to wrap it.
The textarea box for running code once you enable the Devel module (and give yourself permissions if not logged in as user 1) appears at the bottom of every page.
This can be useful for quickly using code snippets such as Agaric Design's Update Taxonomy Terms code snippet.
It goes without saying that the Devel module is for developers doing development on a dev site. Using on a live site requires a level of willingness to court disaster better left to the foolhardy, and paid professionals.
The Devel module (meaning development or developer, but just Devel) has the secret (that is, not well documented) ability to let you run PHP code directly, within the Drupal system, without first creating a node or a page to wrap it.
The textarea box for running code once you enable the Devel module (and give yourself permissions if not logged in as user 1) appears at the bottom of every page.
This can be useful for quickly using code snippets such as Agaric Design's Update Taxonomy Terms code snippet.
It goes without saying that the Devel module is for developers doing development on a dev site. Using on a live site requires a level of willingness to court disaster better left to the foolhardy, and paid professionals.
More like this
- Usernode module causes nesting level too deep (recursion) in Devel's Macro module
- Initial Drupal configuration, following running CVS
- Be sure to register templates moved to module layer, and moving functions from template.php to module
- Drush commands to enable Devel module and Page Render Array display
- Apache, PHP, and disaster


Comments
Post new comment