Feed items

Config To Code Module Is Like Features For Drupal 5

Config to Code module for Drupal 5 makes it easy to deploy new views and panels and to version-control changes to existing ones with a source code repository like subversion. It makes it quick and easy to move configured views and panels in the database to code, then safely delete the configured views from the database and finally, expose the views and panels in code back to their respective modules. It is extensible for other types of configurations that can be stored both in database and code.

Read on for the demo screencast.

Conservation Strategy Fund Uses Drupal

Conservation Strategy Fund (CSF) recently launched their new Drupal website and the HydroCalculator Tool, both by CivicActions.  CSF's mission is to teach environmental organizations around the world to use economics and strategic analysis to conserve nature.  Their new website empowers them to do this with multi-lingual features, news streams and feeds, listings that can be filtered by continent, region, country or theme, t

Hook_world_alter() T-shirt Design

hook_world_alter() T-shirt designThis hook_world_alter() T-shirt idea was something Trevor Twining came up with way back at DrupalCon DC.  I got a single T-shirt made for DrupalCon Paris.  A number of people said they wanted one – though since I'm not interested in the business of making T-shirts, I thought I

Best Photos From DrupalCon Paris 2009

Photo of Druplicon sitting for a Job interview at the Job fair If you don't want to browse the 2500+ photos from DrupalCon Paris on Flickr, but still want to see some photos, try these sets for the highlights instead;

Sample Code For JQuery For Designers And Themers, DrupalCon Paris 2009

Drupal Conference ParisI was extremely pleased with my DrupalCon Paris session on jQuery for Designers and Themers. It was a great success – my best session yet.

You can see the slides at tinyurl.com/jQuery-Designers and download the sample theme code from drupal.org/project/jq4dat.

I made a couple of references to blog posts and work I've done with jQuery during the session:

CivicActions In Paris!

CivicActions Logo: EmpoweredCivicActions is in Paris, and we are running some great sessions at DrupalCon Paris 2009;

Photo of Gregory Heller smiling in a CivicActions Empowered T-shirt We won't be at the job fair this year, but please hunt us down at the conference (we'll be wearing CivicActions t-shirts) if you're looking for work or want to join a first-class international and virtual team of world-changing Drupal developers. You can also contact us through the website for more info or if you want to make sure you don't miss us.

Drupal Gotchya: Cache_get() Returns Expired Items

cache_get() returns $cache objects even if the cached item is stale (expired). The cached data will not be rebuilt every hour in the following example:

<?php
/**
* Builds complicated data for the monkey grip.
*/
function custom_monkey_grip_data() {
 
// Return the cached data
 
$cache = cache_get('custom:monkey_grip');
  if (!
$cache) {
   
// Some expensive processing to build the data.
   
$data = complicated_recursion_and_loops_on_lots_of_data();
   
   
// Cache the data and rebuild it every hour
   
$expire = time() + (60 * 60);
   
cache_set('custom:monkey_grip', $data, 'cache', $expire);
  }
  else {
   
$data = $cache->data;
  }
  return
$data;
}
?>

read more

NZ Software Patents; Meeting With Lianne Dalziel, Commerce Committee Chairperson & Labour MP

Today I had a long and very positive meeting about software patents and the NZ Patents Bill with Commerce Committee chairperson, Labour party's Lianne Dalziel, as well as Drupal-peers Dave Lane and Jonathan Hunt.  Dalziel, Christchurch East MP, was well-informed about the Patents Bill, the Ministry of Economic Development's Patent Review and the insufficient attention paid to software patents (thanks to our emails and exchange of documents beforehand).  She was not so well-informed about software patents and the harm that they cause – as would be expected given the complexity and obscurity of these issues for those who do not work in the software development.