function og_access_node_access_explain in Organic groups 5.3
Same name and namespace in other branches
- 5.8 og_access.module \og_access_node_access_explain()
- 5 og_access.module \og_access_node_access_explain()
- 5.7 og_access.module \og_access_node_access_explain()
- 6.2 modules/og_access/og_access.module \og_access_node_access_explain()
- 6 modules/og_access/og_access.module \og_access_node_access_explain()
Implementation of hook_node_access_explain.
File
- ./
og_access.module, line 257
Code
function og_access_node_access_explain($row) {
if ($row->realm == 'og_public') {
return t('All users may view this node.');
}
elseif ($row->realm == 'og_subscriber') {
$node = node_load((int) $row->gid);
return t('Members of !group_n may view this node.', array(
'!group_n' => l($node->title, "node/{$row->gid}"),
));
}
}