You are here

function spaces_og_spaces_presets in Spaces 7.3

Same name and namespace in other branches
  1. 5.2 spaces_og.module \spaces_og_spaces_presets()
  2. 6.3 spaces_og/spaces_og.module \spaces_og_spaces_presets()
  3. 6 spaces_og/spaces_og.module \spaces_og_spaces_presets()
  4. 6.2 spaces_og/spaces_og.module \spaces_og_spaces_presets()
  5. 7 spaces_og/spaces_og.module \spaces_og_spaces_presets()

Implements hook_spaces_presets().

File

spaces_og/spaces_og.module, line 98

Code

function spaces_og_spaces_presets() {
  $export = array();
  $spaces_presets = new stdClass();
  $spaces_presets->disabled = FALSE;

  /* Edit this to true to make a default spaces_presets disabled initially */
  $spaces_presets->api_version = 3;
  $spaces_presets->name = 'og_controlled';
  $spaces_presets->title = 'Controlled group';
  $spaces_presets->description = 'All users may view public content from this group. Users must request to join this group.';
  $spaces_presets->space_type = 'og';
  $spaces_presets->value = array(
    'variable' => array(
      'spaces_og_selective' => '1',
      'spaces_og_register' => 1,
      'spaces_og_directory' => 1,
      'spaces_og_private' => 0,
    ),
  );
  $export['og_controlled'] = $spaces_presets;
  $spaces_presets = new stdClass();
  $spaces_presets->disabled = FALSE;

  /* Edit this to true to make a default spaces_presets disabled initially */
  $spaces_presets->api_version = 3;
  $spaces_presets->name = 'og_private';
  $spaces_presets->title = 'Private group';
  $spaces_presets->description = 'Only members will be able to access this group. Membership is strictly managed by admins.';
  $spaces_presets->space_type = 'og';
  $spaces_presets->value = array(
    'variable' => array(
      'spaces_features' => array(),
      'spaces_preset_og' => 'og_private',
      'spaces_og_selective' => '3',
      'spaces_og_register' => 0,
      'spaces_og_directory' => 0,
      'spaces_og_private' => 1,
    ),
    'context' => array(),
  );
  $export['og_private'] = $spaces_presets;
  $spaces_presets = new stdClass();
  $spaces_presets->disabled = FALSE;

  /* Edit this to true to make a default spaces_presets disabled initially */
  $spaces_presets->api_version = 3;
  $spaces_presets->name = 'og_public';
  $spaces_presets->title = 'Public group';
  $spaces_presets->description = 'All users may view public content from this group. User may join this group at will.';
  $spaces_presets->space_type = 'og';
  $spaces_presets->value = array(
    'variable' => array(
      'spaces_features' => array(),
      'spaces_og_selective' => '0',
      'spaces_og_register' => 1,
      'spaces_og_directory' => 1,
      'spaces_og_private' => 0,
    ),
  );
  $export['og_public'] = $spaces_presets;
  return $export;
}