Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
May I know if this is going to be available soon?
Comment | File | Size | Author |
---|---|---|---|
#6 | mobile_tools-windows_hone_support-1025682-6.patch | 1.74 KB | Raphael Apard |
#3 | add-windows-phone-detection-1025682-3.patch | 20.78 KB | Devin Carlson |
#2 | add-wp7-mobile-tools-1025682-2.patch | 1.93 KB | yashadev |
Comments
Comment #1
najibx CreditAttribution: najibx commentedHope 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');
}
Comment #2
yashadev CreditAttribution: yashadev commentedThe following patch adds Windows Phone 7 into the mobile group and displays the mobile version of a website when on Windows Phone
Comment #3
Devin Carlson CreditAttribution: Devin Carlson commentedAn updated patch to cleanup the detection code and add in the Windows Phone support as outlined in #1 and #2.
Comment #4
Devin Carlson CreditAttribution: Devin Carlson commentedCommitted to 6.x-2.x.
Comment #6
Raphael Apard CreditAttribution: Raphael Apard commentedHere patch for 7.x.2.0-unstable1