You are here

function og_token_list in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og.module \og_token_list()
  2. 5.3 og.module \og_token_list()
  3. 5.7 og.module \og_token_list()
  4. 6.2 og.module \og_token_list()
  5. 6 og.module \og_token_list()

Implementation of hook_token_list() for og specific tokens

File

./og.module, line 2905

Code

function og_token_list($type = 'all') {
  if ($type == 'node' || $type == 'all') {
    $tokens['node']['ogname'] = t("Title of top group");
    $tokens['node']['ogname-raw'] = t("Unfiltered title of top group. WARNING - raw user input.");
    $tokens['node']['og-id'] = t("ID of top group");
    return $tokens;
  }
}