Technical information on this site may be out of date : no updates since 2015
Drupal upgrades and patches October 9, 2010
, posted under
drupal
svn
drush
drupal planet
patches
upgrading
Reading Greg’s post on security upgrades and a few mentions of patches in the following discussion got me thinking about upgrade methods.
The standard Drupal method is to delete existing files and unpack a tarball to replace the old version - I find this method unappealing because: I keep my code in subversion so don’t want to delete the .svn subdirectories, and sometimes I have patches applied that I don’t want to loose.
Ubuntu 10.04 Bluetooth Audio October 6, 2010
, posted under
linux
ubuntu
audio
bluetooth
It wasn’t immediately obvious to me
What I needed to do to get bluetooth audio working was to install the blueman package
Varnish logs twice October 5, 2010
, posted under
linux
varnish
The default configuration of varnish logs every request twice, once for the client and once for the backend communication
edit the line in /etc/init.d/varnishncsa
to something like
Varnish ACL October 1, 2010
, posted under
linux
varnish
To setup an IP based access control list so that only allowed users may access the site.
Ubuntu on a Samsung N150 netbook September 6, 2010
, posted under
linux
ubuntu
Installing Ubuntu on a new netbook proved remarkably easy once I got past a couple of hurdles
Delete Drupal View programatically July 2, 2010
, posted under
drupal
api
Quick function to delete a view.
This is basically what the UI form submit does.
Programatically altering a CCK node type June 25, 2010
, posted under
drupal
deployment
I’ve found altering CCK node types as part of a fully scripted deployment phase to be quite challenging.
The best I’ve come up with is to use features for the main config changes and adding fields, but this won’t remove any fields - but CCK provides functions for this.
Debugging drush updb June 25, 2010
, posted under
drupal
xdebug
debugging
If you’ve ever tried to debug your update hooks via drush you may (like me) have been puzzled as to why your breakpoints don’t seem to work.
Is git now a mature toolset? June 10, 2010
, posted under
git
I’ve been looking into git for a while, the core toolset has been mature for ages but it just didn’t seem to have the wider support I wanted.
Now I look again and the egit plugin for eclipse has improved massively with full eclipse integration http://wiki.eclipse.org/EGit/User_Guide
Returning info from Drupal updates May 19, 2010
, posted under
drupal
Drupal update hooks can return info about queries run - and this is well documented.
If you want to return other informative messages about updates - just use the same format as returned by http://api.drupal.org/api/function/update_sql/6
<? php
array ( 'success' => $result !== FALSE , 'query' => check_plain ( $sql ));
?>
So you might have an update hook that looks like.
← Previous
Next →