You are here

function og_set_theme in Organic groups 6

Same name and namespace in other branches
  1. 5.8 og.module \og_set_theme()
  2. 5 og.module \og_set_theme()
  3. 5.2 og.module \og_set_theme()
  4. 5.3 og.module \og_set_theme()
  5. 5.7 og.module \og_set_theme()
  6. 6.2 og.module \og_set_theme()

API function; Set the theme for the current request.

Parameters

$node: Pass the group node object or the node id.

1 call to og_set_theme()
og_init in ./og.module

File

./og.module, line 577

Code

function og_set_theme($group_node) {
  global $custom_theme, $user;
  if (!is_object($group_node)) {
    $group_node = node_load($group_node);
  }
  if (!$custom_theme && !empty($group_node->og_theme)) {
    $custom_theme = $group_node->og_theme;
  }
}