You are here

function spaces_og_og_context_handler in Spaces 7.3

Callback function. Invoked by OG Context Negotiation Return the active group retrvied by spaces.

1 call to spaces_og_og_context_handler()
spaces_og_query_user_autocomplete_spaces_og_alter in spaces_og/spaces_og.module
Implements hook_query_TAG_alter().
1 string reference to 'spaces_og_og_context_handler'
spaces_og_og_context_negotiation_info in spaces_og/spaces_og.module
Implements hook_og_context_negotiation_info().

File

spaces_og/spaces_og.module, line 637

Code

function spaces_og_og_context_handler() {
  $gids = array();
  $space = spaces_get_space();
  if (isset($space->type) && $space->type == 'og') {
    $gids[] = $space->og->gid;
  }
  return $gids;
}