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.

Tags: 

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 drupal.org.
For a full list of options available, you'll need to check the module code itself at: date/date_api/date_api_elements.inc::_date_api_element_info()

Tags: 

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...

Tags: 

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 https://support.inmotionhosting.com/cgi-bin/kb.cgi?do=read&id=49. But, it's flat wrong. It's missing one very important piece of information...

Tags: 

Pages

Subscribe to Fragmented Thought RSS