Last updated October 3, 2011. Created on November 23, 2008.
Edited by JuliaKM, figaro, bryan kennedy, ckovac. Log in to edit this page.

A snippet is a small piece of re-usable code that can be used to provide extra functionality or to modify the appearance of a Drupal site.

Code snippets can be used as an alternative to installing a module.

When working with code snippets, it is important to place the code in the correct place within your site. A snippet won't give the expected results if it's in the wrong place.

If a snippet is provided without clear installation instructions, do research into how to use it by consulting the community.

Before adding a new snippet, always make backups of any files or content you are editing.

Looking for support? Visit the forums, or join #drupal-support in IRC.