You are here

public function ogGroupSelectiveState::groupList in Organic groups 7

Same name in this branch
  1. 7 scripts/generate-og-d6-content.php \ogGroupSelectiveState::groupList()
  2. 7 og_ui/scripts/generate-og-ui-d6-content.php \ogGroupSelectiveState::groupList()
Same name and namespace in other branches
  1. 7.2 scripts/generate-og-d6-content.php \ogGroupSelectiveState::groupList()
  2. 7.2 og_ui/scripts/generate-og-ui-d6-content.php \ogGroupSelectiveState::groupList()

File

og_ui/scripts/generate-og-ui-d6-content.php, line 109

Class

ogGroupSelectiveState
Groups with different selective state (e.g. open, moderated, etc'.).

Code

public function groupList($user_ids) {
  $list = array();
  foreach (og_selective_map() as $key => $value) {
    $list[] = array(
      'title' => 'group-selective-state-' . $key,
      'uid' => $user_ids[3],
      'body' => 'Group with selective state set to ' . $value,
      'og_description' => 'Group with selective state set.',
      'og_selective' => $key,
    );
  }
  return $list;
}