You are here

function themekey_user_os2user_os_simplified in ThemeKey 7.2

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

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

src: system:user_os dst: system:user_os_simplified

Parameters

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

Return value

current user's operating system as simplified string

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

File

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

Code

function themekey_user_os2user_os_simplified($user_os) {
  return ThemekeyBrowserDetection::getOsSimplified($user_os);
}