function hook_css_alter

Alter CSS files before they are output on the page.

Parameters

$css: An array of all CSS items (files and inline CSS) being requested on the page.

See also

drupal_add_css()

drupal_get_css()

Related topics

2 functions implement hook_css_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

ckeditor_test_ckeditor_css_alter in drupal/core/modules/ckeditor/tests/modules/ckeditor_test.module
Implements hook_ckeditor_css_alter().
language_css_alter in drupal/core/modules/language/language.module
Implements hook_css_alter().
1 invocation of hook_css_alter()
drupal_get_css in drupal/core/includes/common.inc
Returns a themed representation of all stylesheets to attach to the page.

File

drupal/core/modules/system/system.api.php, line 449
Hooks provided by Drupal core and the System module.

Code

function hook_css_alter(&$css) {

  // Remove defaults.css file.
  unset($css[drupal_get_path('module', 'system') . '/defaults.css']);
}