Posted by chriscalip-gdo on October 27, 2008 at 6:34pm
Last updated by jcmarco on Mon, 2008-11-17 18:37
Last updated by jcmarco on Mon, 2008-11-17 18:37
What is that??!!!!
To remove the Drupal Core CSS and Drupal Module CSS simply edit your template.php
insert this code snippet or edit the sample _preprocess function.
Remember to update [template_name] to your specified sub theme name.
<?php
/**
* Override or insert variables into all templates.
*
* @param $vars
* An array of variables to pass to the theme template.
* @param $hook
* The name of the template being rendered (name of the .tpl.php file.)
*/
function [template_name]_preprocess(&$vars, $hook) {
//$vars['sample_variable'] = t('Lorem ipsum.');
$css = $vars['css'];
unset($css['all']['module']);
$vars['styles'] = drupal_get_css($css);
}
?>