Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When submitting a snippet, please follow these guidelines:
- Keep your handbook snippet page as clear and as brief as possible
- Ensure you test the snippet and tag your page with the appropriate version(s) of Drupal
- Categorize your snippets. For example, put blog-related snippets as a CHILD PAGE to the Customizing the blogs layout page instead of having all the snippets on the same page which will make it more difficult as more snippets are added
- Copy the template snippet below into your clipboard
- Go to the main PHPTEMPLATE THEME SNIPPETS PAGE
- Scroll down to the bottom and click on ADD CHILD PAGE
- Contact Dublin Drupaller if you have any questions or have submitted a page and would like it approved.
Description
Type a very brief description of your snippet here.
Step 1 of 2
Outline what this step is about here.
<h2>Description</h2>
Type a very brief description of your snippet here.
<h3>Step 1 of 2</h3>
Outline what this step is about here.
<?php
/**
* insert your snippet here
*/
?>
Step 2 of 2
Insert an introduction to a second step if required.
Outline what this step is about here.
<h3>Step 2 of 2</h3>
Insert an introduction to a second step if required.
Outline what this step is about here.
/**
* insert your snippet here
*/
Notes
- Insert notes to help users using the snippet
- Link to a forum thread where a discussion related to the snippet is ongoing.
- Include any dependencies, such as a specific module that needs to be enabled first.
<h3>Notes</h3>
<ul><li>Insert notes to help and aid users using the snippet</li>
<li>Link to a forum thread where a discussion related to the snippet is ongoing.</li>
<li>Include any dependencies, such as a specific module that needs to be enabled first.</li>
</ul>