function sassy_bootstrap_library in Sassy 7.2
Same name and namespace in other branches
- 7.3 sassy_bootstrap/sassy_bootstrap.module \sassy_bootstrap_library()
Implementation of hook_library().
File
- extensions/
bootstrap/ sassy_bootstrap.module, line 30
Code
function sassy_bootstrap_library() {
$path = drupal_get_path('module', 'sassy_bootstrap');
$return = array();
$all = array();
foreach (array(
'alerts',
'dropdown',
'modal',
'popover',
'scrollspy',
'tabs',
'twipsy',
) as $library) {
$return['bootstrap-' . $library] = array(
'title' => 'Bootstrap ' . ucwords($library),
'website' => 'http://twitter.github.com/bootstrap/javascript.html#' . $library,
'version' => '1.3.0',
'js' => array(
$path . '/bootstrap/js/bootstrap-' . $library . '.js',
),
'css' => array(
$path . '/bootstrap/lib/patterns.scss',
),
);
$all[$library] = $path . '/bootstrap/js/bootstrap-' . $library . '.js';
}
$return['bootstrap'] = array(
'title' => 'Bootstrap complete',
'website' => 'http://twitter.github.com/bootstrap/',
'version' => '1.3.0',
'js' => $all,
'css' => array(
$path . '/boostrap/lib/bootstrap.scss',
),
);
return $return;
}