Welcome To Snipplr


Everyone's Recent Snippets Tagged drupal



Do you know that you can create a new form directly from theme template.php without the need of creating a module in Drupal 7? Armed with that knowledge, we will build a new login form and transform it to become a horizontal login bar. You migh...
0 1545 posted 14 years ago by sdxxx
Haven't fully tested this yet.
0 1702 posted 14 years ago by marshallgmoore
This goes in your template.php file
1 2571 posted 14 years ago by focal55
This will build over time, and first be finish when I have all ressources and are satisfied with our corporate rss feed.
0 1397 posted 14 years ago by kfiil
How to set a block into region with code
0 1502 posted 14 years ago by kfiil
Implementation of phptemplate_preprocess. Enables that preprocess functions are in different files
0 1463 posted 14 years ago by kfiil
Drupal 7 Behaviour wrapper
0 1294 posted 14 years ago by sherakama
Found This Code to make a stats page view for a client. Make Sure your header input format is PHP.
0 1609 posted 14 years ago by Onfire60
1 1379 posted 15 years ago by Risse
**Important: this snipplet has moved to Github.** - [Programmatically change the active theme in Drupal 6](https://gist.github.com/1973197) - [Programmatically change the active theme in Drupal 7](https://gist.github.com/1973201)
2 3309 posted 15 years ago by wildpeaks
Different formats for listing states.
0 1584 posted 15 years ago by MikeNGarrett
This SQL takes the redirects from Drupal 5.5 tables and converts them into a format the WordPress plugin Redirection can understand.
0 1251 posted 15 years ago by ethicka
I have to migrate from my old Drupal 5 site, that had multiple authors assigned to one node, and this is the solution for __Drupal 7__. First of all you will need to download [__References__](http://drupal.org/project/references) module and ena...
1 1527 posted 15 years ago by Turek
0 1158 posted 15 years ago by JohnnyGamba
Render the contents for a single node field.
0 1109 posted 15 years ago by jonathanpglick
This code goes directly into your template.php file after you remove the open and close PHP tags at the beginning and end. Then place the call below in your block.tpl.php. Don't forget to flush cache.
0 1697 posted 15 years ago by Onfire60
Copy the first code snippet to your theme's template.php. Then call the following section in you block template file.
0 1459 posted 15 years ago by Onfire60