You are here

function quickedit_css_alter in Quick Edit 7

Implements hook_css_alter().

See also

css/bartik.css

https://drupal.org/node/2149261#comment-8290547

File

./quickedit.module, line 973
Provides in-place content editing functionality for fields.

Code

function quickedit_css_alter(&$css) {
  $bartik_style_css = drupal_get_path('theme', 'bartik') . '/css/style.css';
  if (isset($css[$bartik_style_css])) {
    $bartik_fix_css = drupal_get_path('module', 'quickedit') . '/css/bartik.css';
    $css[$bartik_fix_css] = array(
      'data' => $bartik_fix_css,
      // Same properties as quickedit.(module|theme|icons).css, except for weight.
      'group' => 100,
      'type' => 'file',
      'weight' => 1.0,
      'every_page' => FALSE,
      'media' => 'all',
      'preprocess' => TRUE,
      'browsers' => array(
        'IE' => TRUE,
        '!IE' => TRUE,
      ),
    );
  }
}