mobile_tools_is_mobile_device()

for each case, the mobile type is never set.
For example:

case ( eregi('blackberry',$user_agent)); // we find blackberry in the user agent
$mobile_browser = $blackberry;

$blackberry is null - so $mobile_browser is always null. This seems to be true for all the case statements.

Comments

twom’s picture

Thx!

Should be fixed now. In a future version I would like to play with the type of device in order to switch themes based on the device.

I just released the http://drupal.org/project/wurfl module. It can also be used to detect the devices.

twom’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.