function mobile_theme_detect_getbrowser in Mobile Theme 6
Same name and namespace in other branches
- 7 mobile_theme.module \mobile_theme_detect_getbrowser()
Detect whether the user is on a mobile device by using get_browser.
File
- ./
mobile_theme.module, line 54
Code
function mobile_theme_detect_getbrowser() {
$browser = get_browser(NULL, TRUE);
if (isset($browser['ismobiledevice'])) {
return $browser['ismobiledevice'];
}
}