Closed (fixed)
Project:
Mobile Tools
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2009 at 18:21 UTC
Updated:
28 Apr 2009 at 17:40 UTC
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
Comment #1
twom commentedThx!
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.
Comment #2
twom commented