You are here

function lazy_libraries_info in Lazy-load 7

Implements hook_libraries_info().

File

./lazy.module, line 271
Module file for Lazy-load.

Code

function lazy_libraries_info() {
  $libraries['blazy'] = array(
    'name' => 'bLazy',
    'vendor url' => 'https://github.com/dinbror/blazy/',
    'download url' => 'https://github.com/dinbror/blazy/archive/master.zip',
    'version callback' => 'lazy_library_get_version',
    'version arguments' => array(
      'file' => 'package.json',
    ),
    'files' => array(
      'js' => array(
        'blazy.min.js' => array(
          'group' => JS_LIBRARY,
          'every_page' => TRUE,
        ),
      ),
    ),
    'variants' => array(
      'source' => array(
        'files' => array(
          'js' => array(
            'blazy.js' => array(
              'group' => JS_LIBRARY,
              'every_page' => TRUE,
            ),
          ),
        ),
      ),
    ),
  );
  return $libraries;
}