You are here

function gin_toolbar_css_alter in Gin Toolbar 8

Set Gin_login CSS on top of all other CSS files.

File

./gin_toolbar.module, line 157
gin_toolbar.module

Code

function gin_toolbar_css_alter(&$css, $assets) {

  // UPDATE THIS PATH TO YOUR MODULE'S CSS PATH.
  $path = drupal_get_path('theme', 'gin') . '/dist/css/gin_dialog.css';
  if (isset($css[$path])) {

    // Use anything greater than 100 to have it load after the theme
    // as CSS_AGGREGATE_THEME is set to 100.
    // Let's be on the safe side and assign a high number to it.
    $css[$path]['group'] = 101;
  }
}