summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/overlay/overlay.install
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/overlay/overlay.install')
-rw-r--r--kolab.org/www/drupal-7.26/modules/overlay/overlay.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/overlay/overlay.install b/kolab.org/www/drupal-7.26/modules/overlay/overlay.install
new file mode 100644
index 0000000..2df860b
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/overlay/overlay.install
@@ -0,0 +1,19 @@
+<?php
+
+/**
+ * @file
+ * Install, update, and uninstall functions for the Overlay module.
+ */
+
+/**
+ * Implements hook_enable().
+ *
+ * If the module is being enabled through the admin UI, and not from an
+ * installation profile, reopen the modules page in an overlay.
+ */
+function overlay_enable() {
+ if (strpos(current_path(), 'admin/modules') === 0) {
+ // Flag for a redirect to <front>#overlay=admin/modules on hook_init().
+ $_SESSION['overlay_enable_redirect'] = 1;
+ }
+}