You are here

public function ogGroupPostMultipleGroups::postList in Organic groups 7

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

File

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

Class

ogGroupPostMultipleGroups
A group post associated with two groups.

Code

public function postList($user_ids, $groups) {
  $list = array();
  $gid_b = $groups['beta'];
  $gid_a = $groups['alpha'];
  $list[] = array(
    'title' => 'group-posts-ab',
    'uid' => $user_ids[3],
    'body' => 'group posts ab',
    'og_groups' => array(
      $gid_a,
      $gid_b,
    ),
  );
  return $list;
}