You are here

function og_subscribe_link in Organic groups 5.2

Same name and namespace in other branches
  1. 5.8 og.module \og_subscribe_link()
  2. 5 og.module \og_subscribe_link()
  3. 5.3 og.module \og_subscribe_link()
  4. 5.7 og.module \og_subscribe_link()
  5. 6.2 og.module \og_subscribe_link()
  6. 6 og.module \og_subscribe_link()
1 call to og_subscribe_link()
og_og_block_details in ./og.module

File

./og.module, line 2250

Code

function og_subscribe_link($node) {
  if ($node->og_selective == OG_MODERATED) {
    $txt = t('Request subscription');
  }
  elseif ($node->og_selective == OG_OPEN) {
    $txt = t('Subscribe');
  }
  return l($txt, "og/subscribe/{$node->nid}", array(), "destination=node/{$node->nid}");
}