Alter views display options at the theme level

My client today need the mobile version of the retailer locator to shrink down and fit the new mobile theme. Going from about 700px wide to 300ish, with a height change as well. The cleanest route I found for doing this is to have the theme itself alter the view just before rendering. Here's the code, pretty simple once you get past all the dominating recursion.


Creating date popup fields using Drupal form api

Note that the date module is required for this form element type.
An additional guide to using these elements is available on
For a full list of options available, you'll need to check the module code itself at: date/date_api/


Setting CCK and Location Default Values

Had a bit of trouble setting default values for a location item today. It seems I was outsmarting myself, or maybe location was smarter than I gave it credit for. I couldn't seem to use form_alter() to set default values for the location field. The values would appear, but nothing would happen on node save. Strange...


InMotion Hosting Cron Ping

I had a bit of trouble today getting cron working for a client's website today. They are hosted at by InMotion Hosting. In theory, cron should be simple, but not there. There's a bit of trick you'll need. The official documentation on cron jobs for InMotion Hosting is at But, it's flat wrong. It's missing one very important piece of information...



Subscribe to Fragmented Thought RSS