root / drupal7 / modules / overlay / overlay.api.php @ 4da4932d
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | |||
3 | /**
|
||
4 | * @file
|
||
5 | * Hooks provided by Overlay module.
|
||
6 | */
|
||
7 | |||
8 | /**
|
||
9 | * @addtogroup hooks
|
||
10 | * @{
|
||
11 | */
|
||
12 | |||
13 | /**
|
||
14 | * Allow modules to act when an overlay parent window is initialized.
|
||
15 | *
|
||
16 | * The parent window is initialized when a page is displayed in which the
|
||
17 | * overlay might be required to be displayed, so modules can act here if they
|
||
18 | * need to take action to accommodate the possibility of the overlay appearing
|
||
19 | * within a Drupal page.
|
||
20 | */
|
||
21 | function hook_overlay_parent_initialize() { |
||
22 | // Add our custom JavaScript.
|
||
23 | drupal_add_js(drupal_get_path('module', 'hook') . '/hook-overlay.js'); |
||
24 | } |
||
25 | |||
26 | /**
|
||
27 | * Allow modules to act when an overlay child window is initialized.
|
||
28 | *
|
||
29 | * The child window is initialized when a page is displayed from within the
|
||
30 | * overlay, so modules can act here if they need to take action to work from
|
||
31 | * within the confines of the overlay.
|
||
32 | */
|
||
33 | function hook_overlay_child_initialize() { |
||
34 | // Add our custom JavaScript.
|
||
35 | drupal_add_js(drupal_get_path('module', 'hook') . '/hook-overlay-child.js'); |
||
36 | } |
||
37 | |||
38 | /**
|
||
39 | * @} End of "addtogroup hooks".
|
||
40 | */ |