public function ogGroupUserAction::groupActions in Organic groups 7
Same name and namespace in other branches
- 7.2 scripts/generate-og-d6-content.php \ogGroupUserAction::groupActions()
File
- scripts/
generate-og-d6-content.php, line 252
Class
- ogGroupUserAction
- A group with multiple members.
Code
public function groupActions($user_ids, $groups, $posts) {
$gid = $groups[0];
// - user ID 4 as pending member.
og_save_subscription($gid, $user_ids[4], array(
'is_active' => 0,
));
// - user ID 5 as active member.
og_save_subscription($gid, $user_ids[5], array(
'is_active' => 1,
));
// - user ID 6 as pending admin member.
og_save_subscription($gid, $user_ids[6], array(
'is_active' => 0,
'is_admin' => 1,
));
// - user ID 7 as active admin member.
og_save_subscription($gid, $user_ids[7], array(
'is_active' => 1,
'is_admin' => 1,
));
}