cms/drupal/modules/overlay/overlay.install
author ymh <ymh.work@gmail.com>
Tue, 20 Mar 2018 15:02:40 +0100
changeset 573 25f3d28f51b2
parent 541 e756a8c72c3d
permissions -rwxr-xr-x
Added tag 0.0.25 for changeset 190ae1dee68d

<?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;
  }
}