You are here

function quicktabs_add_css in Quick Tabs 6

Same name and namespace in other branches
  1. 5 quicktabs.module \quicktabs_add_css()
  2. 6.3 quicktabs.module \quicktabs_add_css()
  3. 6.2 quicktabs.module \quicktabs_add_css()

Fetch the necessary CSS files for the tab styles.

3 calls to quicktabs_add_css()
quicktabs_block in ./quicktabs.module
Implementation of hook_block
quicktabs_preview_page in ./quicktabs.module
Callback function for quicktabs/preview.
theme_quicktabs_settings in ./quicktabs.module

File

./quicktabs.module, line 748

Code

function quicktabs_add_css($tabstyle_css = NULL) {

  // Add quicktabs CSS.
  drupal_add_css(drupal_get_path('module', 'quicktabs') . '/quicktabs.css');

  // Add specific CSS.
  if (!isset($tabstyle_css)) {
    $tabstyle_css = variable_get('quicktabs_tabstyle', 'default');
  }
  if ($tabstyle_css != 'default') {
    drupal_add_css($tabstyle_css, 'module');
  }
}