aboutsummaryrefslogtreecommitdiff
path: root/migrategroups.php
diff options
context:
space:
mode:
Diffstat (limited to 'migrategroups.php')
-rw-r--r--migrategroups.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/migrategroups.php b/migrategroups.php
new file mode 100644
index 000000000..4e3ef3f2b
--- /dev/null
+++ b/migrategroups.php
@@ -0,0 +1,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);
+
+?>