Last updated 29 December 2015. Created on 23 November 2008.
Edited by aryashreep, JuliaKM, figaro, bryan kennedy. 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.