You are here

public function ogGroupThreePosts::postList in Organic groups 7

Same name and namespace in other branches
  1. 7.2 scripts/generate-og-d6-content.php \ogGroupThreePosts::postList()

File

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

Class

ogGroupThreePosts
A group with three posts.

Code

public function postList($user_ids, $groups) {
  $gid = $groups[0];
  $list = array();
  foreach (array(
    1,
    2,
    3,
  ) as $itr) {
    $list[] = array(
      'title' => 'group-posts-' . $itr,
      'uid' => $user_ids[3],
      'body' => 'group posts ' . $itr,
      'og_groups' => array(
        $gid,
      ),
    );
  }
  return $list;
}