You are here

function _themekey_node_callback in ThemeKey 6

Same name and namespace in other branches
  1. 6.4 modules/themekey.node.inc \_themekey_node_callback()
  2. 6.2 modules/themekey.node.inc \_themekey_node_callback()
  3. 6.3 modules/themekey.node.inc \_themekey_node_callback()
  4. 7.3 modules/themekey.node.inc \_themekey_node_callback()
  5. 7 modules/themekey.node.inc \_themekey_node_callback()
  6. 7.2 modules/themekey.node.inc \_themekey_node_callback()
1 string reference to '_themekey_node_callback'
themekey_node_themekey_paths in modules/themekey.node.inc

File

modules/themekey.node.inc, line 26

Code

function _themekey_node_callback(&$item, $parameters) {
  if ($node = node_load($parameters['node:nid'])) {
    if ($theme = _themekey_match_properties($parameters, $node)) {
      $item['theme'] = $theme;
    }
  }
}