matason's picture

CCK Allowed Values List, PHP code and hook_content_allowed_values_alter()

Posted by matason on Saturday, 2 January, 2010 - 10:31

Wooo, catchy blog post title eh?

It's good to keep PHP code out of your Drupal database right?

The flexibility afforded by adding PHP code to things like your "Allowed values list" for a CCK field is absolutely fantastic on one hand but niggles me on the other because the code ends up in the database and won't be version controlled.

matason's picture

Clearing down test orders in Ubercart

Posted by matason on Friday, 23 October, 2009 - 22:10

Setting up and testing a Drupal 6 + Ubercart site with a payment service provider can result in a lot of test orders on the system so here's a quick procedure for clearing them down before handing the site over to the client.

Use at your own risk and ensure you have a back up of your database before you start!

Back up your database.
No really, back up your database, if you make a mistake here your data is gone bye-bye!

Okay, now we can begin.