Last updated 22 August 2011. Created on 22 August 2011.
Edited by BWPanda. Log in to edit this page.

The Views module provides a flexible method for Drupal administrators to control how lists of content are presented.

This section contains a lot of small pieces of PHP that you can copy/paste into your Views administration. See the Views page in the modules and features section for more information on Views module.

Often views allow you to do exactly what you want, without the security risks of adding PHP into your database.

Feel free to add new snippets. Feel free to enhance other ones too. In fact, please try to reduce duplication as much as possible. Improve an existing snippet rather than adding another one.

PLEASE NOTE! The following snippets are user submitted. Use at your own risk! They contain PHP, so they can potentially break your site or your data, or give everyone full access to your site by default. Be Careful! Test Well!

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