function hook_overlay_parent_initialize

7.x overlay.api.php hook_overlay_parent_initialize()

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

The parent window is initialized when a page is displayed in which the overlay might be required to be displayed, so modules can act here if they need to take action to accommodate the possibility of the overlay appearing within a Drupal page.

Related topics

1 function implements hook_overlay_parent_initialize()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

overlay_overlay_parent_initialize in drupal/modules/overlay/overlay.module
Implements hook_overlay_parent_initialize().
1 invocation of hook_overlay_parent_initialize()
overlay_set_mode in drupal/modules/overlay/overlay.module
Sets the overlay mode and adds proper JavaScript and styles to the page.

File

drupal/modules/overlay/overlay.api.php, line 21
Hooks provided by Overlay module.

Code

function hook_overlay_parent_initialize() {
  // Add our custom JavaScript.
  drupal_add_js(drupal_get_path('module', 'hook') . '/hook-overlay.js');
}