function overlay_enable

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.

File

modules/overlay/overlay.install, line 14

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.