You are here

function sharerich_libraries_info in Sharerich 7.2

Same name and namespace in other branches
  1. 7.3 sharerich.module \sharerich_libraries_info()
  2. 7 sharerich.module \sharerich_libraries_info()

Implements hook_libraries_info().

File

./sharerich.module, line 35

Code

function sharerich_libraries_info() {
  return array(
    'rrssb' => array(
      'title' => 'Ridiculously Responsive Social Share Buttons',
      'vendor url' => 'http://kurtnoble.com/labs/rrssb/',
      'download url' => 'https://github.com/kni-labs/rrssb',
      'path' => '',
      'version arguments' => array(
        'file' => 'bower.json',
        'pattern' => '/version"\\s*:\\s*"([0-9\\.]+)",$/',
      ),
      'callbacks' => array(
        'pre-load' => array(
          'sharerich_libraries_preload',
        ),
      ),
      'files' => array(
        'js' => array(
          'rrssb.js',
        ),
        'css' => array(
          'css/rrssb.css',
        ),
      ),
      'variants' => array(
        'minified' => array(
          'files' => array(
            'css' => array(
              'css/rrssb.css',
            ),
            'js' => array(
              'js/rrssb.min.js',
            ),
          ),
        ),
        'source' => array(
          'files' => array(
            'css' => array(
              'css/rrssb.css',
            ),
            'js' => array(
              'js/rrssb.js',
            ),
          ),
        ),
      ),
    ),
  );
}