Support from Acquia helps fund testing for Drupal Acquia logo

Comments

najibx’s picture

Hope someone patch it

in mobile_tools.module, Added switch CASE :

case (FALSE !== stripos($user_agent, 'Windows Phone')); // we find the words Windows Phone in the user agent
$mobile_browser = array('type' => 'mobile', 'group' => 'wp7');
break;

and modify ...

function _mobile_tools_device_groups() {
return array('wp7'=>'Windows Phone', 'iphone'=>'iPhone', 'ipod'=>'iPod', 'ipad'=>'iPad', 'android'=>'Android', 'opera_mini'=>'Opera Mini', 'blackberry'=>'BlackBerry');
}

yashadev’s picture

Assigned: Unassigned » yashadev
Status: Active » Needs review
FileSize
1.93 KB

The following patch adds Windows Phone 7 into the mobile group and displays the mobile version of a website when on Windows Phone

Devin Carlson’s picture

An updated patch to cleanup the detection code and add in the Windows Phone support as outlined in #1 and #2.

Devin Carlson’s picture

Status: Needs review » Fixed

Committed to 6.x-2.x.

Status: Fixed » Closed (fixed)

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

Raphael Apard’s picture

Version: 6.x-2.x-dev » 7.x-2.0-unstable1
Assigned: Devin Carlson » Unassigned
FileSize
1.74 KB

Here patch for 7.x.2.0-unstable1