You are here

function themekey_dummy2user_browser in ThemeKey 7

Same name and namespace in other branches
  1. 7.3 modules/themekey.system.inc \themekey_dummy2user_browser()
  2. 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 535
Provides some ThemeKey properties.

Code

function themekey_dummy2user_browser($dummy) {
  return ThemekeyBrowserDetection::getBrowser($_SERVER['HTTP_USER_AGENT']);
}