Drupal tutorial: Vertical tabs Form API example

Vertical tabs is a great feature in drupal that comes out of the box with the Drupal 7 release. Just that it hasn't got that real good example on the Form API reference page.
http://api.drupal.org/api/drupal/developer%21topics%21forms_api_referenc...

Here you can find how to implement a vertical tabs into a custom form.

Drupal tutorial: How to install Drush from command line in Linux. A step by step guide

Before you start:

  • Make sure that you have the rights to use the sudo command
  • Make sure that you have the rights to write inside the /usr/local folder

Open up the console and follow these simple steps by typing in the following commands:

YouTube Mashup: Rolling in the Deep - World Covers

Great mashup on the "Rolling in the Deep" single

IF #sopa / #pipa passes this single video would lead around 70 people to prison for "using" (singing) copyrighted materials unauthorized.
(now the funny part) Imagine what chore you could form in the prison with all these people at the same place, having even more free time :)

Quicktip on using Drupal's db_select together with node_load_multiple

Let's say you would like to query all nodes of a content type that belong to a certain user. In Drupal7 the correct way of doing this would be the following.
Build the query using the new PDO driver.
Execute the query.
Fetch results as an associative array.

Great article from Lullabot: "Localized and Multi-Lingual Content in Drupal 7"

This is one of the 'must read' articles about Drupal's multilanguage support system, especially in Drupal7.
You can find it here: http://www.lullabot.com/articles/localized-and-multi-lingual-content-dru...

Please note the comment of Gabor Hojtsy, below the article:

avoid changing the default language!

Creativity vs Pressure

Show this when your client is pressuring you.
This video is the evidence that when you let people do their job, simply be not pressuring them, staying out of their way can do way much more than giving them too strict deadlines.

Click on the title to view the video.

The Drupal way of preprocessing URL's, menu path

If you are tired of processing the URL for getting data out of it you are at the right place. See full blog entry for doing it the right way, the Drupal way. :)

Node revision when doing node_save gets the currently logged in users uid

Dear #Drupal diary: Today we wanted to do a node_save programatically that populates an extra field in case it's empty.
But since revisions were enabled and we were doing this in the node_load hook there was a problem. The node_save created a new revision of the node with the uid of the currently logged in user.

Suddenly the content of the `Almighty USER 1` was falling to the hands of the 'enemy' (some other user who is currently logged in). But then after some research found out that this will be resolved in Drupal 8.

Pages

Promotie EMAG