Welcome To Snipplr
Everyone's Recent Snippets Tagged drupal
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
834
posted 15 years ago by kurokikaze
Nice tip for doing global search/replace on database, taken from the excellent warner brothers records writeup.
0
675
posted 15 years ago by zachharkey
Thanks to [James](
http://www.girsbrain.org/blog
) for this code.
0
700
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
823
posted 15 years ago by zachharkey
I just wanted to have the argument code as text. It is provided as an image.
2
1164
posted 15 years ago by lexx
Create theme override file: `upload_attachments.tpl.php` in your theme directory.
[CSS styles](http://snipplr.com/view/11848)
2
909
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
948
posted 15 years ago by zachharkey
Few different ways to output primary links in your page.tpl.php template.
3
1158
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
604
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
713
posted 15 years ago by tgbdad
Include drupal 5 mission statement in views or other php enabled sections(i.e.: Views Header, etc.).
1
612
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
865
posted 16 years ago by berkes
Insert into your phptemplate theme's template.php file to override the original View theme code.
0
893
posted 16 years ago by shrop