From 0b3bb9a64301ccfb47a197e3cc032b10e3549e13 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 25 Oct 2009 10:47:08 -0700 Subject: [PATCH] Forgot to check this in, which will help Bharat's review. --- modules/ldap/helpers/ldap_installer.php | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 modules/ldap/helpers/ldap_installer.php diff --git a/modules/ldap/helpers/ldap_installer.php b/modules/ldap/helpers/ldap_installer.php new file mode 100644 index 00000000..7f86cb3d --- /dev/null +++ b/modules/ldap/helpers/ldap_installer.php @@ -0,0 +1,40 @@ +query("UPDATE {items} SET owner_id = {$admin->id}"); + } + + static function uninstall() { + // Delete all groups so that we give other modules an opportunity to clean up + foreach (identity::groups() as $group) { + module::event("group_deleted", $group); + } + } +} \ No newline at end of file