The Devel Snippet module allows to save code snippets inputted on the Execute PHP Code (provided by the Develmodule) to database for further execution.

Requirements

This module requires the following modules:

Installation

Install as you would normally install a contributed Drupal module. See this link for further information.

Configuration

Configure user permissions in Administration » People » Permissions:

  • Administer Devel Snippets (Devel Snippet module)

The only permission provided by the module and required for
accessing module's pages and perform actions with code snippets.
Give to trusted roles only.

  • Execute PHP code (Devel module)

This permission provided by the Devel module is needed to execute snippets code.
Again, give to trusted roles only.