aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2012-10-25 09:22:58 +0000
committerroot <root@migration.vz.lan>2012-10-25 09:23:08 +0000
commitca9e77c5dc802efb452a22e95441f8c9f0c6892d (patch)
treeea66d3f93454bca4579d8daf9a38c816d5ced1e7
parentbb3b8d432ee83764ab61b30a9f0c7d18f10f9a46 (diff)
downloadelgg-ca9e77c5dc802efb452a22e95441f8c9f0c6892d.tar.gz
elgg-ca9e77c5dc802efb452a22e95441f8c9f0c6892d.tar.bz2
add group importing script.
-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);
+
+?>