You are here

class ogGroupSelectiveState in Organic groups 7

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

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

Hierarchy

Expanded class hierarchy of ogGroupSelectiveState

File

scripts/generate-og-d6-content.php, line 268

View source
class ogGroupSelectiveState implements ogContent {
  public function groupList($user_ids) {
    $list = array();
    foreach (og_selective_map() as $key => $value) {
      $list[] = array(
        'title' => 'group-selective-state-' . $value,
        'uid' => $user_ids[3],
        'body' => 'Group with selective state set to ' . $value,
        'og_description' => 'Group with selective state set.',
      );
    }
    return $list;
  }
  public function postList($user_ids, $groups) {
    return array();
  }
  public function groupActions($user_ids, $groups, $posts) {
  }

}

Members