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.
I normally use the script from http://detectmobilebrowsers.mobi/ to detect mobile browsers on my sites.
Here's a patch to use that script instead of browscap, if you're having trouble installing it, etc.
It's the first ever Drupal patch I submit, so be careful!
Regarding licensing note that while the code is open-sourced the developer is asking commercial sites to "Upgrade".
Comment | File | Size | Author |
---|---|---|---|
mobile_theme_detectmobilebrowsers_mobi.patch | 736 bytes | hoomanb |
Comments
Comment #1
RobLoachAwesomesauce!
Comment #2
RobLoachThanks a lot! http://drupal.org/cvs?commit=496634
I also added a select box to choose which method is used and some instructions in
admin/help/mobile_theme
of how to install it. Great find on this library!