function og_set_theme in Organic groups 6.2
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 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_set_group_context in ./
og.module - API function to set the group context for the current request.
File
- ./
og.module, line 833 - Code for the Organic Groups module.
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;
}
}