function og_subscribe_link in Organic groups 5.2
Same name and namespace in other branches
- 5.8 og.module \og_subscribe_link()
- 5 og.module \og_subscribe_link()
- 5.3 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()
1 call to og_subscribe_link()
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}");
}