Disabling all Drupal CSS files
by jake ~ December 15th, 2008. Filed under: Drupal.We needed to disable all of Drupal’s CSS files from our theme. Here’s how we did it: function THEMENAME_preprocess(&$variables) { // Get rid of all of Drupal’s CSS files $css = drupal_add_css(); foreach ($css['all']['module'] as $file => $status) { if (!strstr($file, ‘modules/MYMODULE’)) { unset($css['all']['module'][$file]); } } $variables['styles'] [...]
