<?php
// $Id: overlay.install,v 1.3 2010/01/18 17:12:04 dries Exp $

/**
 * @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) {
    // Flag for a redirect to <front>#overlay=admin/modules on hook_init().
    $_SESSION['overlay_enable_redirect'] = 1;
  }
}
