You are here

function themekey_node_themekey_global in ThemeKey 7.3

Implements hook_themekey_global().

File

modules/themekey.node.inc, line 231
Provides some node attributes as ThemeKey properties.

Code

function themekey_node_themekey_global() {
  global $user;
  $parameters = array();
  if (0 === strpos(themekey_get_q(), 'node/add')) {

    // required by themekey_ui:author_triggers_theme
    $parameters['profile:uid'] = $user->uid;

    // this user creates new content
  }
  return $parameters;
}