Welcome To Snipplr


Everyone's Recent Snippets Tagged drupal



Increases the memory limit of php and html files.
4 1297 posted 15 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 832 posted 15 years ago by kurokikaze
Nice tip for doing global search/replace on database, taken from the excellent warner brothers records writeup.
0 669 posted 15 years ago by zachharkey
Thanks to [James]( http://www.girsbrain.org/blog ) for this code.
0 697 posted 15 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 819 posted 15 years ago by zachharkey
Put this in the template.php within your template directory.
7 969 posted 15 years ago by troynt
I just wanted to have the argument code as text. It is provided as an image.
2 1163 posted 15 years ago by lexx
1 682 posted 15 years ago by zachharkey
0 610 posted 15 years ago by zachharkey
Create theme override file: `upload_attachments.tpl.php` in your theme directory. [CSS styles](http://snipplr.com/view/11848)
2 904 posted 15 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 946 posted 15 years ago by zachharkey
2 661 posted 15 years ago by zachharkey
Few different ways to output primary links in your page.tpl.php template.
3 1156 posted 15 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 599 posted 15 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 710 posted 15 years ago by tgbdad
Put this in settings.php
2 955 posted 15 years ago by aleprieto
1 697 posted 15 years ago by tgbdad
This might work in Drupal 6, but I haven't tried it.
2 1003 posted 16 years ago by tgbdad
Include drupal 5 mission statement in views or other php enabled sections(i.e.: Views Header, etc.).
1 609 posted 16 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 862 posted 16 years ago by berkes
Insert into your phptemplate theme's template.php file to override the original View theme code.
0 891 posted 16 years ago by shrop