| 1 |
<?php |
<?php |
| 2 |
// $Id: og_access.module,v 1.22 2008/07/15 17:03:45 weitzman Exp $ |
// $Id: og_access.module,v 1.23 2008/07/16 19:40:56 weitzman Exp $ |
| 3 |
|
|
| 4 |
// visibility states for private groups. site admin chooses in og_access_settings() |
// visibility states for private groups. site admin chooses in og_access_settings() |
| 5 |
define('OG_PRIVATE_GROUPS_NEVER', 0); |
define('OG_PRIVATE_GROUPS_NEVER', 0); |
| 161 |
$form['og_nodeapi']['visible']['og_public'] = array( |
$form['og_nodeapi']['visible']['og_public'] = array( |
| 162 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 163 |
'#title' => t('Public'), |
'#title' => t('Public'), |
| 164 |
'#default_value' => isset($node->nid) ? $node->og_public : 0, |
'#default_value' => isset($node->og_public) ? $node->og_public : 0, |
| 165 |
'#description' => t('Show this post to everyone, or only to members of the groups checked above. Posts without any groups are always <em>public</em>.'), |
'#description' => t('Show this post to everyone, or only to members of the groups checked above. Posts without any groups are always <em>public</em>.'), |
| 166 |
'#weight' => 2, |
'#weight' => 2, |
| 167 |
); |
); |