Same name and namespace in other branches
  1. 7.x-3.x quicktabs.module \_quicktabs_get_style_css() 1 comment
  2. 8.x-1.x quicktabs.module \_quicktabs_get_style_css() 1 comment

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 styles.

File

./quicktabs.module, line 608

Code

function _quicktabs_get_style_css($style = 'nostyle') {
    static $tabstyles;
    if ($style != 'nostyle') {
        if (!isset($tabstyles)) {
            $tabstyles = module_invoke_all('quicktabs_tabstyles');
        }
        foreach ($tabstyles as $css_file => $tabstyle) {
            if ($style == $tabstyle) {
                return $css_file;
            }
        }
    }
    return 'nostyle';
}