1 system.api.php hook_css_alter(&$css)

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

backdrop_add_css()

backdrop_get_css()

Related topics

File

core/modules/system/system.api.php, line 418
Hooks provided by Backdrop core and the System module.

Code

function hook_css_alter(&$css) {
  // Remove defaults.css file.
  unset($css[backdrop_get_path('module', 'system') . '/defaults.css']);
}