Welcome To Snipplr


Everyone's Recent Snippets Tagged drupal



Increases the memory limit of php and html files.
4 169 posted 11 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 90 posted 11 years ago by kurokikaze
Nice tip for doing global search/replace on database, taken from the excellent warner brothers records writeup.
0 90 posted 11 years ago by zachharkey
Thanks to [James]( http://www.girsbrain.org/blog ) for this code.
0 76 posted 11 years ago by zachharkey
This is a replacement for the default PHP settings in Drupal's .htaccess file. Increasing the memory_limit, max_post_size etc. prevents a lot of errors, especially when using image modules.
0 93 posted 11 years ago by zachharkey
Put this in the template.php within your template directory.
7 90 posted 11 years ago by troynt
I just wanted to have the argument code as text. It is provided as an image.
2 129 posted 11 years ago by lexx
1 66 posted 11 years ago by zachharkey
0 46 posted 11 years ago by zachharkey
Create theme override file: `upload_attachments.tpl.php` in your theme directory. [CSS styles](http://snipplr.com/view/11848)
2 83 posted 11 years ago by zachharkey
The following styles are designed to work with the markup from a custom theme override template called [upload_attachments.tpl.php](http://snipplr.com/view/11851)
1 62 posted 11 years ago by zachharkey
2 63 posted 11 years ago by zachharkey
Few different ways to output primary links in your page.tpl.php template.
3 140 posted 11 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 55 posted 11 years ago by lexx
I currently have project_issue nodes set for replacement pattern issues/issue[nid] in Drupal 5.x PathAuto. This query fixes all of the URL aliases for entries created before this was set correctly.
0 62 posted 11 years ago by tgbdad
Put this in settings.php
2 92 posted 11 years ago by aleprieto
This might work in Drupal 6, but I haven't tried it.
2 101 posted 11 years ago by tgbdad
Include drupal 5 mission statement in views or other php enabled sections(i.e.: Views Header, etc.).
1 44 posted 11 years ago by reverend
A bash script that calls Drush for all your multisite sites and returns a list of available and installed modules for each site.
2 84 posted 11 years ago by berkes
Insert into your phptemplate theme's template.php file to override the original View theme code.
0 83 posted 11 years ago by shrop