You are here

function nice_imagefield_widget_libraries_info in Nice ImageField Widget 7

Same name and namespace in other branches
  1. 7.2 nice_imagefield_widget.module \nice_imagefield_widget_libraries_info()

Implements hook_libraries_info().

File

./nice_imagefield_widget.module, line 48

Code

function nice_imagefield_widget_libraries_info() {
  $libraries['flip'] = array(
    'name' => 'jQuery Flip',
    'vendor url' => 'http://nnattawat.github.io/flip/',
    'download url' => 'https://github.com/nnattawat/flip',
    'version arguments' => array(
      'file' => 'dist/jquery.flip.min.js',
      // flip v1.0.0
      'pattern' => '/flip - v(\\d+\\.+\\d+)/',
      'lines' => 1,
    ),
    'files' => array(
      'js' => array(
        'dist/jquery.flip.min.js',
      ),
    ),
    'integration files' => array(
      'nice_imagefield_widget' => array(
        'js' => array(
          'js/nice_imagefield_widget.js',
        ),
        'css' => array(
          'css/nice_imagefield_widget.css',
        ),
      ),
    ),
  );
  return $libraries;
}