berkes


Member since 11/27/2006

Name: Bèr Kessels

berkes

Location: Nijmegen, Netherlands

Website: http://webschuur.com

The way of the Hacker - Long term #Drupal developer - owner of webschuur.com - OpenSource lover - Long term #linux user - Rails user

6 snippets

7160 profile views

10 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

berkes's Recent SnippetsTagged php



« Prev 1 Next »
An easy debug trick: gives you a variable that you can print in any tpl.php to find out what vars you have available there.
1 955 posted 16 years ago by berkes
Add these lines to Drupals settings.php. Probably works on other systems, then Drupal too.
1 989 posted 16 years ago by berkes
Shortens a string, and adds a span with a title of the full string. Function is useful for listings where you don't want wraping; or for places where a long string liek a username can break the layout.
1 915 posted 17 years ago by berkes
Put classes around your bodyy, to allow different colors for seperate pages and areas on your site. IT will simply add a css-safe version of the first argument in an url. Say the url is /about_us/our_company the class will be body.about-us Require...
2 787 posted 17 years ago by berkes
callback in a form alter to enforce an exposed filter to use only the options set in filter. Works for selectlists only.
2 765 posted 17 years ago by berkes
This snippet is for use with image module, a small contributed module for image handling. (Yes: in Drupal you need a /contributed/ module for this o_O. The template snippet links the images to their own node.
2 738 posted 17 years ago by berkes
« Prev 1 Next »