function og_subscribe_link in Organic groups 5.3
Same name and namespace in other branches
- 5.8 og.module \og_subscribe_link()
- 5 og.module \og_subscribe_link()
- 5.2 og.module \og_subscribe_link()
- 5.7 og.module \og_subscribe_link()
- 6.2 og.module \og_subscribe_link()
- 6 og.module \og_subscribe_link()
2 calls to og_subscribe_link()
- og_handler_field_subscribe in ./
og_views.inc - Views handler to display the subscribe link
- og_og_block_details in ./
og.module
File
- ./
og.module, line 2403
Code
function og_subscribe_link($node) {
if ($node->og_selective == OG_MODERATED) {
$txt = t('Request membership');
}
elseif ($node->og_selective == OG_OPEN) {
$txt = t('Join');
}
if (isset($txt)) {
return l($txt, "og/subscribe/{$node->nid}", array(
'rel' => 'nofollow',
), drupal_get_destination());
}
}