1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Install, update, and uninstall functions for the Overlay module.
|
6
|
*/
|
7
|
|
8
|
/**
|
9
|
* Implements hook_enable().
|
10
|
*
|
11
|
* If the module is being enabled through the admin UI, and not from an
|
12
|
* installation profile, reopen the modules page in an overlay.
|
13
|
*/
|
14
|
function overlay_enable() {
|
15
|
if (strpos(current_path(), 'admin/modules') === 0) {
|
16
|
// Flag for a redirect to <front>#overlay=admin/modules on hook_init().
|
17
|
$_SESSION['overlay_enable_redirect'] = 1;
|
18
|
}
|
19
|
}
|