function bootstrap_library_libraries_info in Bootstrap Library 7
Implements hook_libraries_info().
File
- ./
bootstrap_library.module, line 228 - Primarily Drupal hooks.
Code
function bootstrap_library_libraries_info() {
$settings = variable_get('bootstrap_library_settings');
$min = $settings['minimized']['options'] ? '.min' : '';
$files = _bootstrap_library_get_files($settings['files']['types']['css'], $settings['files']['types']['js'], $min);
$libraries['bootstrap'] = array(
'name' => 'Bootstrap',
'vendor url' => 'http://getbootstrap.com/',
'download url' => 'http://getbootstrap.com/',
'version arguments' => array(
'file' => 'js/bootstrap.js',
// 3.x.x: Botstrap v3.0.3
'pattern' => '/Bootstrap\\s+v?([0-9\\.]+)/',
'lines' => 2,
),
'files' => $files['files'],
'variants' => $files['variants'],
);
return $libraries;
}