function hook_popups in Popups API (Ajax Dialogs) 6.2
Creates the rule registry for the popups.
4 functions implement hook_popups()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- popups_add_popups in ./
popups.module - Attach the popup behavior to the page.
- popups_admin_popups in ./
popups_admin.module - hook_popups
- popups_get_popups in ./
popups.module - Define hook_popups(). Build the list of popup rules from all modules that implement hook_popups.
- popups_test_popups in ./
popups_test.module - Implementation of hook_popups().
1 invocation of hook_popups()
- popups_get_popups in ./
popups.module - Define hook_popups(). Build the list of popup rules from all modules that implement hook_popups.
File
- ./
popups.api.php, line 11 - Provides hook documentation for the Popups API.
Code
function hook_popups() {
$popups = array();
$popups['admin/content/taxonomy'] = array(
// Act on the first primary tab.
'div#tabs-wrapper a:eq(1)',
// Act on the 2nd column link in the table.
'table td:nth-child(2) a' => array(
// Don't update the original page.
'noUpdate' => TRUE,
),
);
return $popups;
}