You are here

function themekey_user_profile2theme in ThemeKey 7.3

This function implements the interface of a ThemeKey mapping function but doesn't set a ThemeKey property's value. It sets the Drupal static themekey_custom_theme which will cause ThemeKey to use this theme.

Parameters

$uid: the user's id of the profile, current value of ThemeKey property profile:uid

Return value

string "static" if global custom theme has been set or NULL if no theme has been assigned to the contact form

1 string reference to 'themekey_user_profile2theme'
themekey_user_themekey_properties in modules/themekey.user.inc
Implements hook_themekey_properties().

File

modules/themekey.user.inc, line 131
Provides some user attributes as ThemeKey properties.

Code

function themekey_user_profile2theme($uid) {
  return themekey_ui_author2theme($uid);
}