You are here

function fences_css_alter in Fences 7

Same name and namespace in other branches
  1. 7.2 fences.module \fences_css_alter()

Implements hook_css_alter().

File

./fences.module, line 215
Fences is a module providing configurable field wrappers.

Code

function fences_css_alter(&$css) {

  // Replace the field module's CSS with our non-floating inline version.
  $path = drupal_get_path('module', 'field') . '/theme';
  if (isset($css[$path . '/field.css']) && $css[$path . '/field.css']['data'] == $path . '/field.css') {
    $css[$path . '/field.css']['data'] = drupal_get_path('module', 'fences') . '/field.css';
    if (isset($css[$path . '/field-rtl.css'])) {
      $css[$path . '/field-rtl.css']['data'] = drupal_get_path('module', 'fences') . '/field-rtl.css';
    }
  }
}