Community Documentation

A guide to submitting your own snippets

Last updated November 8, 2008. Created by Jody Lynn on May 19, 2005.
Edited by add1sun, moshe weitzman, Bèr Kessels, Dublin Drupaller. Log in to edit this page.

Please post your own snippets up here for others and follow these simple guidelines.

  1. Click on ADD CHILD PAGE from the section that your snippet belongs with (e.g. PHP block snippets, PHP page snippets, etc.)
  2. Give your snippet a short and obvious title so it is easy for others to see what your snippet does.
  3. Please include a simple introduction at the top of your PHP Snippet which explains:
  • What the snippet does
  • Which versions of Drupal has it been tested with
  • Any extra information for newbies that you think is relevant

Page status

No known problems

Log in to edit this page

Reference

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.