function _bootstrap_library_get_files in Bootstrap Library 7
Define which files needed to be loaded.
Return value
An array for variants and an array for files.
1 call to _bootstrap_library_get_files()
- bootstrap_library_libraries_info in ./
bootstrap_library.module - Implements hook_libraries_info().
File
- ./
bootstrap_library.module, line 285 - Primarily Drupal hooks.
Code
function _bootstrap_library_get_files($css = 1, $js = 1, $min = '') {
$js_array = array(
'js/bootstrap' . $min . '.js',
);
$css_array = array(
'css/bootstrap' . $min . '.css',
'css/bootstrap-theme' . $min . '.css',
);
$variants = array();
$files = array();
if ($css) {
$variants['css'] = array(
'files' => array(
'css' => $css_array,
),
);
$files['css'] = $css_array;
}
if ($js) {
$variants['js'] = array(
'files' => array(
'js' => $js_array,
),
);
$files['js'] = $js_array;
}
return array(
'variants' => $variants,
'files' => $files,
);
}