You are here

function themekey_user_browser2user_browser_simplified in ThemeKey 7.2

Same name and namespace in other branches
  1. 7.3 modules/themekey.system.inc \themekey_user_browser2user_browser_simplified()
  2. 7 modules/themekey.system.inc \themekey_user_browser2user_browser_simplified()

ThemeKey mapping function to set a ThemeKey property's value (destination) with the aid of another ThemeKey property (source).

src: system:user_browser dst: system:user_browser_simplified

Parameters

$dummy: string containing current value of ThemeKey property system:dummy

Return value

current user's browser as simplified string

1 string reference to 'themekey_user_browser2user_browser_simplified'
themekey_system_themekey_properties in modules/themekey.system.inc
Implements hook_themekey_properties().

File

modules/themekey.system.inc, line 629
Provides some ThemeKey properties.

Code

function themekey_user_browser2user_browser_simplified($user_browser) {
  return ThemekeyBrowserDetection::getBrowserSimplified($user_browser);
}