User login

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.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.