Welcome To Snipplr


Everyone's Recent Snippets Tagged drupal



Increases the memory limit of php and html files.
4 1061 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 641 posted 15 years ago by kurokikaze
Nice tip for doing global search/replace on database, taken from the excellent warner brothers records writeup.
0 513 posted 15 years ago by zachharkey
Thanks to [James]( http://www.girsbrain.org/blog ) for this code.
0 550 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 639 posted 15 years ago by zachharkey
Put this in the template.php within your template directory.
7 755 posted 15 years ago by troynt
I just wanted to have the argument code as text. It is provided as an image.
2 938 posted 15 years ago by lexx
1 499 posted 15 years ago by zachharkey
0 436 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 686 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 704 posted 15 years ago by zachharkey
2 483 posted 15 years ago by zachharkey
Few different ways to output primary links in your page.tpl.php template.
3 960 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 441 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 545 posted 15 years ago by tgbdad
Put this in settings.php
2 778 posted 15 years ago by aleprieto
1 516 posted 15 years ago by tgbdad
This might work in Drupal 6, but I haven't tried it.
2 760 posted 15 years ago by tgbdad
Include drupal 5 mission statement in views or other php enabled sections(i.e.: Views Header, etc.).
1 443 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 670 posted 15 years ago by berkes
Insert into your phptemplate theme's template.php file to override the original View theme code.
0 711 posted 15 years ago by shrop