summaryrefslogtreecommitdiff
path: root/modules/overlay/overlay.install
blob: 9d37e9b623dd58a135bb5b11e8057d4312ccb32b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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/modules') === 0) {
    drupal_goto('<front>', array('fragment' => 'overlay=admin/modules'));
  }
}