Same name in other branches
- 7.x-2.x quicktabs.module \_quicktabs_get_style_css()
- 7.x-3.x quicktabs.module \_quicktabs_get_style_css()
Helper function to get the css file for given style.
1 call to _quicktabs_get_style_css()
- quicktabs_get_css in ./
quicktabs.module - Fetch the necessary CSS files for the tab style.
File
-
./
quicktabs.module, line 504
Code
function _quicktabs_get_style_css($style) {
$tabstyles =& drupal_static(__FUNCTION__);
if (empty($tabstyles)) {
$cid = 'quicktabs_tabstyles';
$cache = cache_get($cid);
if (!$cache) {
$tabstyles = \Drupal::moduleHandler()->invokeAll('quicktabs_tabstyles');
cache_set($cid, $tabstyles);
}
else {
$tabstyles = $cache->data;
}
}
$css_file = array_search($style, $tabstyles);
if ($css_file) {
return array(
'data' => $css_file,
);
}
return array();
}