Admin menu in Drupal6 disappears or is incomplete (solution)

This post applies when The admin menu suddenly disappears The admin menu is incomplete (menu-items are missing) Following scenario causes this behaviour: The records of table “menu_links” with menu_name “admin_menu”…

Read more »

Difference between PathAuto and PathRedirect

It’s difficult to get around Drupal-modules that appear to have the same functionality. This is particularly the case when you want to set-up decent SEO-friendly url’s. The two main modules…

Read more »

Write Drupal logs to rsyslog instead of to dblog

Instead of logging to the database, it could make more sense to log to the operating system. Why? Pro The OS has already a great way of maintaining logs, so…

Read more »

Which variables can you use in a Drupal-textfield with input format “php”?

This function will print a large list of all the variables that are declared in the current scope: An interesting variable is $node, but it is not always accessible.

Read more »

How to change the machine name of a content field in Drupal6

Once you have created a field in Drupal, the fieldname will haunt you forever. A spelling mistake will keep living, and refactoring is out of the question. It is however…

Read more »

A list with related nodes in Drupal 6

I wanted to make a list of “related nodes” based on the term that is attached to the node. Say I have 10 nodes that have the term “fruit”. With…

Read more »

Move RSS-feeds out of Drupal

Our main RSS-feed at DeWereldMorgen.be is the most requested page next to our homepage. It seems logic, think of how many rss-readers hourly check the feed. And, think of how…

Read more »

How to add a single on/off checkbox in a Drupal 6 admin form?

  The short answer: It’s not possible The long answer: In a simple user form it is possible to add a single on/off checkbox. $form[‘thermometer_enabled’] = array( ‘#type’ => ‘checkbox’,…

Read more »

How to move a WordPress from one domain to another?

To follow my example. This blog used to be on www.robinbrackez.be/uitgewerkt, and is now on www.developed.be 1) Backup/restore your database If you want the website to be on a new…

Read more »

Drupal: execution order of modules

Ever wondered which module gets executed first? By default, every module has a weight of zero. If you want a module or its hooks to be executed first, you have…

Read more »