hook_css_alter

Versions
7
hook_css_alter(&$css)

Alter CSS files before they are output on the page.

See also

drupal_add_css()

@see drupal_get_css()

Parameters

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

Related topics

Code

modules/system/system.api.php, line 505

<?php
function hook_css_alter(&$css) {
  // Remove defaults.css file.
  unset($css[drupal_get_path('module', 'system') . '/defaults.css']);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.