function og_make_private_action in Organic groups 6
Same name and namespace in other branches
- 6.2 modules/og_actions/og_actions.module \og_make_private_action()
Action to make a node private in organic groups. Requires actions.module.
File
- modules/
og_actions/ og_actions.module, line 110
Code
function og_make_private_action($node, $context) {
if (isset($node->og_groups)) {
$node->og_public = 0;
watchdog('action', 'Set node %id to private.', array(
'%id' => intval($node->nid),
));
}
}