First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
19
modules/overlay/overlay.install
Normal file
19
modules/overlay/overlay.install
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @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
|
||||
* installation 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue