You are here

function dialog_command_xlazyloader in Dialog 7

Creates a Drupal AJAX 'xLazyLoader' command.

The 'xLazyLoader' command loads additional JavaScript, CSS and images through the xLazyLoader library (http://code.google.com/p/ajaxsoft/wiki/xLazyLoader).

This command is implemented by Drupal.ajax.prototype.commands.xlazyloader() defined in dialog.js.

Parameters

$options: An associative of what JavaScript, CSS or images the client should load.

  • "js": An array of JavaScript files to load.
  • "css": An array of CSS files to load.
  • "img": An array of images to load.

Return value

An array suitable for use with the ajax_render() function.

1 call to dialog_command_xlazyloader()
dialog_ajax_render_alter in ./dialog.module
Implement hook_ajax_render_alter().

File

./dialog.module, line 246
The Dialog module provides an API for displaying and interacting with jQuery UI Dialog modals.

Code

function dialog_command_xlazyloader($options = array()) {
  return array(
    'command' => 'xlazyloader',
    'options' => $options,
  );
}