You are here

function og_url_group in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og.module \og_url_group()
  2. 5.3 og.module \og_url_group()
  3. 5.7 og.module \og_url_group()

Handle '$group' in a URL.

1 string reference to 'og_url_group'
og_views_url_tokens in ./og_views.inc
An implementation of hook_view_url_tokens.

File

./og.module, line 3017

Code

function og_url_group($token, $argument, $arg) {
  global $user;
  if (!is_numeric($arg)) {
    return FALSE;
  }
  $node = node_load($arg);
  if (og_is_group_type($node->type)) {
    return TRUE;
  }
  return FALSE;
}