You are here

function galleryformatter_add_css in Gallery formatter 6

Same name and namespace in other branches
  1. 7 galleryformatter.module \galleryformatter_add_css()

Fetch the necessary CSS files for the gallery styles.

1 call to galleryformatter_add_css()
template_preprocess_galleryformatter_formatter_galleryformatter_default in includes/galleryformatter.theme.inc
Preprocess function for galleryformatter.tpl.php

File

./galleryformatter.module, line 149

Code

function galleryformatter_add_css($style) {

  // Add galleryformatter CSS.
  drupal_add_css(drupal_get_path('module', 'galleryformatter') . '/theme/galleryformatter.css');
  if ($style != 'nostyle') {
    $style_css = _galleryformatter_get_style_css($style);
    drupal_add_css($style_css, 'module');
  }
}