Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged drupal



This function goes in the {module\_name}.views\_default.inc file
0 1201 posted 16 years ago by jonathanpglick
This will trigger views to load the views in the file {module\_name}.views\_default.inc
0 1197 posted 16 years ago by jonathanpglick
Drupal FiveStar change any of the settings as necessary to create a completely customized widget, regardless of the node type settings.
1 1454 posted 16 years ago by humanoid
2 1305 posted 16 years ago by psynaptic
0 1001 posted 16 years ago by zugec
1 1137 posted 16 years ago by zugec
1 1397 posted 16 years ago by zugec
0 1133 posted 16 years ago by robksawyer
2 1497 posted 17 years ago by level09
1 1726 posted 17 years ago by jonathanpglick
Place the following function in your theme's template.php
5 1911 posted 17 years ago by zachharkey
Script to clear all Drupal caches from a url (it's bookmarkable)
1 1358 posted 17 years ago by terrencewood
2 1456 posted 17 years ago by level09
1 1343 posted 17 years ago by troynt
Alternate to <a href="http://snipplr.com/view/133530">this method</a>. Have not yet tested. In settings.php, put this code:
0 1471 posted 17 years ago by zachharkey
Use instead of standard "sql\_tablesort()" function. Handles multiple "sort" in $header, but the arrow will be only on last sorted column. This can be handled with rewriting theme_table, for example.
0 1522 posted 17 years ago by kurokikaze
Put this in the template.php within your template directory.
7 2000 posted 17 years ago by troynt
I just wanted to have the argument code as text. It is provided as an image.
2 3199 posted 17 years ago by lexx
Create theme override file: `upload_attachments.tpl.php` in your theme directory. [CSS styles](http://snipplr.com/view/11848)
2 1743 posted 17 years ago by zachharkey
2 1517 posted 17 years ago by zachharkey
Few different ways to output primary links in your page.tpl.php template.
3 2061 posted 17 years ago by zachharkey
I wanted to show a block of the current taxonomy term info (desc, name, img) in Drupal 6 views 2 Provide default argument
0 1268 posted 17 years ago by lexx