function themekey_dummy2user_browser in ThemeKey 7.3
Same name and namespace in other branches
- 7 modules/themekey.system.inc \themekey_dummy2user_browser()
- 7.2 modules/themekey.system.inc \themekey_dummy2user_browser()
ThemeKey mapping function to set a ThemeKey property's value (destination) with the aid of another ThemeKey property (source).
src: system:dummy dst: system:user_browser
Parameters
$dummy: string containing current value of the ThemeKey property, system:dummy
Return value
current user's browser as string
1 string reference to 'themekey_dummy2user_browser'
- themekey_system_themekey_properties in modules/
themekey.system.inc - Implements hook_themekey_properties().
File
- modules/
themekey.system.inc, line 596 - Provides some ThemeKey properties.
Code
function themekey_dummy2user_browser($dummy) {
if (!empty($_SERVER['HTTP_USER_AGENT'])) {
return ThemekeyBrowserDetection::getBrowser($_SERVER['HTTP_USER_AGENT']);
}
return NULL;
}