og_get_group_context

Versions
5 – 6
og_get_group_context()

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_determine_context().

Return value

The group node object if exists.

▾ 14 functions call og_get_group_context()

calendar_og_groups in contributions/calendar/calendar.module
Helper function to figure out a group gid to use in blocks.
meetings_get_gid in contributions/meetings/meetings.module
Returns the $gid of the current group context if OG is enabled and such a context is available.
notifications_team_form in contributions/notifications_team/notifications_team.module
Define a "delicious" like form subscribing users to nodes. TODO - prepopulate with current user|case owner|case assignee
notifications_team_get_users in contributions/notifications_team/notifications_team.module
Returns an array of minimal user account objects that have been checked for the 'subscribe to content' permission.
og_block_details in contributions/og/og.module
og_exit in contributions/og/og.module
Set session variable thats used to determine group context when node is in multiple groups. See also og_determine_context().
og_form_alter in contributions/og/og.module
og_nodeapi in contributions/og/og.module
Implementation of hook_nodeapi().
og_node_delete_nongroup_form in contributions/og/og.module
og_panels_group_from_node_context in contributions/og_panels/plugins/relationships/og.inc
Return a new context based on an existing context
og_preprocess_page in contributions/og/og.module
Make group context available to javascript for ad tags and analytics.
og_views_block_notifications in contributions/og/modules/og_views/og_views.module
og_views_block_search in contributions/og/modules/og_views/og_views.module
og_views_query_substitutions in contributions/og/modules/og_views/og_views.views.inc
Implementation of hook_views_query_substitutions().

Code

contributions/og/og.module, line 559

<?php
function og_get_group_context() {
  return og_set_group_context();
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.