summaryrefslogtreecommitdiff
path: root/modules/overlay/overlay.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/overlay/overlay.install')
-rw-r--r--modules/overlay/overlay.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/overlay/overlay.install b/modules/overlay/overlay.install
new file mode 100644
index 000000000..a864b5eb1
--- /dev/null
+++ b/modules/overlay/overlay.install
@@ -0,0 +1,19 @@
+<?php
+// $Id$
+
+/**
+ * @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
+ * install profile, reopen the modules page in an overlay.
+ */
+function overlay_enable() {
+ if (strpos(current_path(), 'admin/config/modules') === 0) {
+ drupal_goto('<front>', array('fragment' => 'overlay=admin/config/modules'));
+ }
+}