You are here

function og_make_public_action in Organic groups 6

Same name and namespace in other branches
  1. 6.2 modules/og_actions/og_actions.module \og_make_public_action()

Action to make a node public in organic groups. Requires actions.module.

File

modules/og_actions/og_actions.module, line 100

Code

function og_make_public_action($node, $context) {
  if (isset($node->og_groups)) {
    $node->og_public = 1;
    watchdog('action', 'Set node %id to public.', array(
      '%id' => intval($node->nid),
    ));
  }
}