Welcome To Snipplr


Everyone's Recent Snippets Tagged drupal



Increases the memory limit of php and html files.
4 1090 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 657 posted 15 years ago by kurokikaze
Nice tip for doing global search/replace on database, taken from the excellent warner brothers records writeup.
0 528 posted 15 years ago by zachharkey
Thanks to [James]( http://www.girsbrain.org/blog ) for this code.
0 558 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 659 posted 15 years ago by zachharkey
Put this in the template.php within your template directory.
7 773 posted 15 years ago by troynt
I just wanted to have the argument code as text. It is provided as an image.
2 961 posted 15 years ago by lexx
1 513 posted 15 years ago by zachharkey
0 449 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 697 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 716 posted 15 years ago by zachharkey
2 493 posted 15 years ago by zachharkey
Few different ways to output primary links in your page.tpl.php template.
3 977 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 460 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 560 posted 15 years ago by tgbdad
Put this in settings.php
2 791 posted 15 years ago by aleprieto
1 530 posted 15 years ago by tgbdad
This might work in Drupal 6, but I haven't tried it.
2 781 posted 15 years ago by tgbdad
Include drupal 5 mission statement in views or other php enabled sections(i.e.: Views Header, etc.).
1 458 posted 15 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 685 posted 15 years ago by berkes
Insert into your phptemplate theme's template.php file to override the original View theme code.
0 730 posted 15 years ago by shrop