Drupal Tips


Drupal Iphone Theme development Tip

This is just a handy tip for anyone beginning to develop or test a Drupal IPhone theme when they don't have an IPhone and are not using a mac.

The first thing you need to do is add the User Agent Switcher FireFox addon - https://addons.mozilla.org/en-US/firefox/addon/59.

This module allows you to impersonate any browser when viewing a site (obviously this has lots of uses when doing drupal seo as well).  It will take a browser restart to get it working.

Then add in a new user agent using the user agent details below for the iPhone:

FeedAPI: purge and refresh all feeds

It often happens that I've added and configured a load of feeds, only to discover afterwards that I should have done something differently from the start, so I need to purge and refresh all the feeds I've already created. Rather than sitting in front of admin/content/feed and clicking for hours on all the remove and refresh links, I wrote a simple script to do this for me.