function og_set_group_context in Organic groups 5.7
Same name and namespace in other branches
- 5.8 og.module \og_set_group_context()
- 5 og.module \og_set_group_context()
- 5.2 og.module \og_set_group_context()
- 5.3 og.module \og_set_group_context()
- 6.2 og.module \og_set_group_context()
- 6 og.module \og_set_group_context()
4 calls to og_set_group_context()
- og_get_group_context in ./
og.module - API function for getting the group context (if any) for the current request. Used for things like setting current theme and breadcrumbs. This context is set during og_theme()
- og_panels_context_create_group in includes/
groupcontext.inc - It's important to remember that $conf is optional here, because contexts are not always created from the UI.
- og_theme in ./
og.module - Override theme based on what group is being displayed (if any). Be smart about selecting the 'active' group for ambigous urls like node/$nid
- og_views_break_phrase in ./
og_views.inc - Helper function for filter and argument which accepts + or , delimited integers like taxonomy urls. Performs modifications on $query object. A wrapper around views_break_phrase().
File
- ./
og.module, line 249
Code
function og_set_group_context($group_node = NULL) {
static $stored_group_node;
if (og_is_group_type($group_node->type)) {
$stored_group_node = $group_node;
}
return $stored_group_node;
}