#610234 by Gábor Hojtsy, ksenzee, cwgordon7, David_Rothstein, seutje, marcvangend, sun, JoshuaRogers, markus_petrux, Bojhan, Rob Loach, Everett Zufelt, drifter, markboulton, leisareichelt, et al: Added Overlay module to core, which shows administrative pages in a JS overlay, retaining context on the front-end site.
2009-12-02 07:28:22 +00:00
|
|
|
<?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() {
|
2010-01-04 21:31:52 +00:00
|
|
|
if (strpos(current_path(), 'admin/modules') === 0) {
|
2010-01-18 17:12:04 +00:00
|
|
|
// Flag for a redirect to <front>#overlay=admin/modules on hook_init().
|
|
|
|
$_SESSION['overlay_enable_redirect'] = 1;
|
#610234 by Gábor Hojtsy, ksenzee, cwgordon7, David_Rothstein, seutje, marcvangend, sun, JoshuaRogers, markus_petrux, Bojhan, Rob Loach, Everett Zufelt, drifter, markboulton, leisareichelt, et al: Added Overlay module to core, which shows administrative pages in a JS overlay, retaining context on the front-end site.
2009-12-02 07:28:22 +00:00
|
|
|
}
|
|
|
|
}
|