Using the Mobile tools module

In this recipe, we will be using the Mobile tools module to bring mobile device detection to our site. Using this module we will configure the site to display a different theme on detection of a mobile browser.

Getting ready

To complete this recipe you will need to have installed the following module, enabling only the Mobile tools feature:

In order to test the results of this recipe you will need to either have a smartphone, or a smartphone emulator.

How to do it...

We will begin by configuring the Mobile tools module. We will then assign a theme to use when a mobile device has been detected before testing the result.

  1. Select Configuration from the admin menu, then select Mobile tools ...

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.