function context_mobile_detect_preboot in Context Mobile Detect 7.2
Same name and namespace in other branches
- 7 context_mobile_detect.module \context_mobile_detect_preboot()
Called via settings.inc; needs to be added to settings.php manually.
1 call to context_mobile_detect_preboot()
- settings.inc in ./
settings.inc
File
- ./
context_mobile_detect.module, line 173
Code
function context_mobile_detect_preboot() {
$data = _context_mobile_detect_detect(FALSE);
if ($data['device'] < 3 && $data['device'] > 0) {
// Change page cache hash key
_context_mobile_detect_add_query_string('device=' . $data['device'] . '&device_type=' . $data['device_type']);
}
}