Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged drupal



0 900 posted 14 years ago by flexelektro
0 1308 posted 14 years ago by zack
0 1286 posted 14 years ago by zack
0 833 posted 14 years ago by grgcnnr
0 1004 posted 14 years ago by grgcnnr
Use this to pull a list of items based on the nid of the 'parent' node.... so you can show fields added to that node, on the child. Handy. Make nid argument..... use custom php arg code below to feed the argument the nid of the parent. Remember...
0 903 posted 14 years ago by janlodey
Use this on a Term ID argument - enter the below as provide default agrument - php Code remember to change the vid to your vocabulary
0 972 posted 14 years ago by janlodey
0 1217 posted 14 years ago by Phibo
hook_theme implementation with description
0 988 posted 14 years ago by kfiil
How to get a menu in a preprocess function
0 899 posted 14 years ago by kfiil
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 1288 posted 14 years ago by sdxxx
This goes in your template.php file
1 2275 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 1146 posted 14 years ago by kfiil
How to set a block into region with code
0 1220 posted 14 years ago by kfiil
Implementation of phptemplate_preprocess. Enables that preprocess functions are in different files
0 1215 posted 14 years ago by kfiil
Found This Code to make a stats page view for a client. Make Sure your header input format is PHP.
0 1222 posted 14 years ago by Onfire60
1 1118 posted 14 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 2563 posted 14 years ago by wildpeaks
Different formats for listing states.
0 1330 posted 14 years ago by MikeNGarrett