function spaces_og_spaces_presets in Spaces 6
Same name and namespace in other branches
- 5.2 spaces_og.module \spaces_og_spaces_presets()
- 6.3 spaces_og/spaces_og.module \spaces_og_spaces_presets()
- 6.2 spaces_og/spaces_og.module \spaces_og_spaces_presets()
- 7.3 spaces_og/spaces_og.module \spaces_og_spaces_presets()
- 7 spaces_og/spaces_og.module \spaces_og_spaces_presets()
Implementation of hook_spaces_presets().
File
- spaces_og/
spaces_og.module, line 462
Code
function spaces_og_spaces_presets() {
$items = array();
$items['private'] = array(
'type' => 'og',
'name' => t('Private group'),
'description' => t('Only members will be able to access this group. Membership is strictly managed by admins.'),
'preset' => array(
'og' => array(
'og_selective' => OG_CLOSED,
'og_directory' => OG_DIRECTORY_NEVER,
'og_register' => OG_REGISTRATION_ALWAYS,
'og_private' => defined(OG_PRIVATE_GROUPS_ALWAYS) ? OG_PRIVATE_GROUPS_ALWAYS : 1,
),
),
);
$items['controlled'] = array(
'type' => 'og',
'name' => t('Controlled group'),
'description' => t('All users may view public content from this group. Users must request to join this group.'),
'preset' => array(
'og' => array(
'og_selective' => OG_MODERATED,
'og_directory' => OG_DIRECTORY_ALWAYS,
'og_register' => OG_REGISTRATION_ALWAYS,
'og_private' => defined(OG_PRIVATE_GROUPS_NEVER) ? OG_PRIVATE_GROUPS_NEVER : 0,
),
),
);
$items['public'] = array(
'type' => 'og',
'name' => t('Public group'),
'description' => t('All users may view public content from this group. User may join this group at will.'),
'preset' => array(
'og' => array(
'og_selective' => OG_OPEN,
'og_directory' => OG_DIRECTORY_ALWAYS,
'og_register' => OG_REGISTRATION_ALWAYS,
'og_private' => defined(OG_PRIVATE_GROUPS_NEVER) ? OG_PRIVATE_GROUPS_NEVER : 0,
),
),
);
return $items;
}