You are here

function popups_popups in Popups API (Ajax Dialogs) 5

Same name and namespace in other branches
  1. 7 popups.module \popups_popups()

hook_popups

This implements hook_popups, defined in popups_get_popups. Adding popup behavior to the core admin pages has been moved to popups_admin. See the comments in popups_add_popups for explination of the options.

@return: Array of link selectors to apply popup behavior to. Keyed by path or form_id.

File

./popups.module, line 312
popups.module

Code

function popups_popups() {
  return array(
    'popups/test' => array(
      // test.
      '#test-popup' => array(
        'additionalJavascript' => array(
          'misc/collapse.js',
        ),
        'behaviors' => array(
          'Drupal.popups.collapsibleBehavior',
        ),
        'forceReturn' => 'node/add/page',
      ),
    ),
  );
}