hook_overlay_child_initialize

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 hook_overlay_child_initialize()

Allow modules to act when an overlay child window is initialized.

The child window is initialized when a page is displayed from within the overlay, so modules can act here if they need to take action to work from within the confines of the overlay.

Related topics

Code

modules/overlay/overlay.api.php, line 33

<?php
function hook_overlay_child_initialize() {
  // Add our custom JavaScript.
  drupal_add_js(drupal_get_path('module', 'hook') . '/hook-overlay-child.js');
}
?>