| 7 system.api.php | hook_css_alter(&$css) |
| 8 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
Related topics
2 functions implement hook_css_alter()
1 invocation of hook_css_alter()
File
- core/
modules/ system/ system.api.php, line 423 - 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']);
}
Login or register to post comments