function og_set_theme in Organic groups 6
Same name and namespace in other branches
- 5.8 og.module \og_set_theme()
- 5 og.module \og_set_theme()
- 5.2 og.module \og_set_theme()
- 5.3 og.module \og_set_theme()
- 5.7 og.module \og_set_theme()
- 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.
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;
}
}