Git not working on MAC OS X Lion?

You need to add the default install location, /usr/local, to your ~/.bash_profile.

export PATH=$PATH:/usr/local/git/bin/
source ~/.bash_profile

Tidy up XML for import in Drupal

Run

tidy -xml -o output.xml -utf8 -f error.log input.xml

Dropbutton with Ctools

Earl Miles aka merlinofchaos, has a knack for introducing new UI elements to Drupal. See View UI , Panels UI, Modal forms ...etc. With the new revamped Views 3 interface comes a new element, the dropbutton.

The dropbutton provides a javascript based dropbutton menu. It shows up as a button with a clickable twisty pointer to the right. When clicked the button will expand, showing the list of links. This allows you to focus on the main tasks, like edit, while less-used action are within a single click. It's a neat thing that you can use on your custom modules too.

Here's how.

The Drupal.org Link filter

How many times have you typed <a href="http://drupal.org/project/modulename">module</a> to help someone find new modules or <a href="http://drupal.org/users/9999999999">username</a> to link to user profiles? It's a real PITA to go type all that html everytime, right? Wouldn't it be awesome if you could just write the module name or the user id and your editor would automatically find the correct module title, the right username and turn these into links? Well, there's a module for that. It's called the Drupal.org project link filter.

Hit read more to see it in action.

Moving an element across browsers

What do you get with a shiny new toy minus sleep? This.

Yeah? Source codes? Will upload later today. ;)

Pages

Subscribe to hook_preprocess RSS