aboutsummaryrefslogtreecommitdiff
path: root/mod/beechat/migrategroups.php
blob: 4e3ef3f2b6a0cfcb44ded57704e25276cbae8cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?
require_once(dirname(__FILE__) . "/lib.php");

admin_gatekeeper();

// groups disabled for now
exit();

$groups = elgg_get_entities(array('types'=>'group','limit'=>0));
elgg_set_ignore_access(true);
foreach($groups as $group) {
	echo "migrating " . $group->name . "<br/>";
	ejabberd_create_group($group);
}
echo "done!";
elgg_set_ignore_access(false);

?>