Peter's Blog

Redefining the Impossible

Engineering Log upgraded to Drupal 4.5.0


Upgraded work engineering log to Drupal 4.5.0. Here's what I did:

  • Followed the upgrade instructions (duh!)
  • copied the contents of the bluemarine theme directory to a new directory and replaced the .css file with my old xtemplate themes .css file.
  • Tweeked the template so that the main title is not a link and is aligned to the right of the logo, not under it (i.e. added align="left" to the image properties).
  • added an entry for the new site-name style to change the colour and text size of the main title.
  • Altered my wilki.module file to work with drupal 4.5.0. Mainly copied how it was done in the textile module as the drupal developer documents were a bit vague. However, for a filter it only means defining two functions.
  • Altered my sendhome.module to work. This was mainly implementation of the sendhome_menu function as described in the developer documents.

In the boilerplate _menu hook function there is a line that goes:

    if ($may_cache) {

This line stops the simple callback for the /sendhome page from working. It's ok if I comment it out so I'll leave it at that for now. This module is only for me to forward articles from the work blog to my personal blog.

The upgrade gave me a chance to prune out modules I don't use. It seems to be running ok, the improvement over 4.4.0 is not remarkable but there are some nice new features.


Filed under: blog drupal php theme wilki

Comments are Closed