You are here

function og_context_handler_url in Organic groups 7

Same name and namespace in other branches
  1. 7.2 og_context/og_context.module \og_context_handler_url()

Context handler; Get groups from URL.

1 string reference to 'og_context_handler_url'
og_context_og_context_negotiation_info in og_context/og_context.module
Implements hook_og_context_negotiation_info().

File

og_context/og_context.module, line 486
Get a group from a viewed page.

Code

function og_context_handler_url() {
  $context = array();
  if ($gids = og_get_context_by_url()) {
    $context = $gids;
  }
  return $context;
}