You are here

function galleryformatter_add_css in Gallery formatter 7

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

Fetch the necessary CSS files for the gallery styles.

1 call to galleryformatter_add_css()
galleryformatter_field_formatter_view in ./galleryformatter.module
Implements hook_field_formatter_view().

File

./galleryformatter.module, line 383

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);
  }
}