comparison modules/overlay/overlay.install @ 0:ff03f76ab3fe

initial version
author danieleb <danielebarchiesi@me.com>
date Wed, 21 Aug 2013 18:51:11 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:ff03f76ab3fe
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 }