#610234 by Gábor Hojtsy, ksenzee, cwgordon7, David_Rothstein, seutje, marcvangend, sun, JoshuaRogers, markus_petrux, Bojhan, Rob Loach, Everett Zufelt, drifter, markboulton, leisareichelt, et al: Added Overlay module to core, which shows administrative pages in a JS overlay, retaining context on the front-end site.
2009-12-02 07:28:22 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Hooks provided by Overlay module.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @addtogroup hooks
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 accomodate the possibility of the overlay appearing
|
|
|
|
* within a Drupal page.
|
|
|
|
*/
|
|
|
|
function hook_overlay_parent_initialize() {
|
|
|
|
// Add our custom JavaScript.
|
|
|
|
drupal_add_js(drupal_get_path('module', 'hook') . '/hook-overlay.js');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
function hook_overlay_child_initialize() {
|
2010-07-17 02:12:36 +00:00
|
|
|
// Add our custom JavaScript.
|
|
|
|
drupal_add_js(drupal_get_path('module', 'hook') . '/hook-overlay-child.js');
|
#610234 by Gábor Hojtsy, ksenzee, cwgordon7, David_Rothstein, seutje, marcvangend, sun, JoshuaRogers, markus_petrux, Bojhan, Rob Loach, Everett Zufelt, drifter, markboulton, leisareichelt, et al: Added Overlay module to core, which shows administrative pages in a JS overlay, retaining context on the front-end site.
2009-12-02 07:28:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @} End of "addtogroup hooks".
|
|
|
|
*/
|